(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/
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
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
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
> "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
"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
> 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