Re: analyzer type - does it default to "index" or "query"?

2011-05-26 Thread Koji Sekiguchi
(11/05/26 13:23), Andy wrote: Hi, When specifying an analyzer for a fieldType, I can say type="index" or type="query" What if I don't spcify the type for an analyzer? Does it default to "index" or "query" or both? Both. koji -- http://www.rondhuit.com/en/

Re: analyzer type

2010-11-12 Thread Tomas Fernandez Lobbe
For a field type the anslysis applied at index time (when you are adding documents to Solr) can be a slightly different than the analysis applied at query time (when a user executes a query). For example, if you know you are going to be indexing html pages, you might need to use the HTMLStripCh

Re: analyzer type="query" with NGramTokenFilterFactory forces phrase query

2010-01-18 Thread Robert Muir
the way that queryparser treats whitespace is also a problem for languages that have words that contain spaces, like vietnamese. i think it also causes grief for multi-word synonyms, such that they don't work correctly at querytime: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#Synony

Re: analyzer type="query" with NGramTokenFilterFactory forces phrase query

2010-01-18 Thread Wangsheng Mei
I faced a similar problem when I was dealing with Chinese words search. By simply adding a PositionFilter at the end of analyzer, the damn phrase query disappeared and replaced by term queries which is what I've expected. That's very nice, thank you very much! Note that Chinese words segmentation

Re: analyzer type="query" with NGramTokenFilterFactory forces phrase query

2009-12-31 Thread AHMET ARSLAN
> "if this is the expected behaviour is > there a way to override it?"[1] > > [1] me Using PositionFilterFactory[1] after NGramFilterFactory can yield parsed query: field:fa field:am field:mi field:il field:ly field:fam field:ami field:mil field:ily [1] http://wiki.apache.org/solr/Analyzers

Re: analyzer type="query" with NGramTokenFilterFactory forces phrase query

2009-12-31 Thread Joe Calderon
"if this is the expected behaviour is there a way to override it?"[1] [1] me On Thu, Dec 31, 2009 at 10:13 AM, AHMET ARSLAN wrote: >> Hello *, im trying to make an index >> to support spelling errors/fuzzy >> matching, ive indexed my document titles with >> NGramFilterFactory >> minGramSize=2 ma

Re: analyzer type="query" with NGramTokenFilterFactory forces phrase query

2009-12-31 Thread AHMET ARSLAN
> Hello *, im trying to make an index > to support spelling errors/fuzzy > matching, ive indexed my document titles with > NGramFilterFactory > minGramSize=2 maxGramSize=3, using the analysis page i can > see the > common grams match between the indexed value and the query > value, > however when i