WordDelimiterFilterFactory is probably stripping out the parens. If you try
running your terms through http://localhost:8983/solr/admin/analysis.jsp
http://localhost:8983/solr/admin/analysis.jspyou'll see the effects of
various tokenizers and filters, be sure to check
the verbose checkbox.
Here's a very good place to start understanding the intention of
the various options:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
In particular, about WordDelimiterFilterFactory:
split on intra-word delimiters (all non alpha-numeric characters).
-
Wi-Fi - Wi, Fi
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFiltersBest
Erick
On Tue, Feb 1, 2011 at 8:52 AM, Pierre-Yves LANDRON pland...@hotmail.comwrote:
Hello !I've seen that in order to search term with parenthesis=2C those
have to be=escaped as in title:\(term\).But it doesn't seem to work -
parenthesis are=n't taken in account.here is the field type I'm using to
index these data : fieldType name=text
class=solr.TextField positionIncrementGap=100
analyzer type=index tokenizer
class=solr.WhitespaceTokenizerFactory/!-- in
this example, we will only use synonyms at query time
filter class=solr.SynonymFilterFactory synonyms=index_synonyms.txt
ignoreCase=true expand=false/ --
!-- Case insensitive stop word removal.
enablePositionIncrements=true ensures that a 'gap' is left to
allow for accurate phrase queries.
-- filter
class=solr.StopFilterFactory
ignoreCase=true
words=stopwords.txt
enablePositionIncrements=true / filter
class=solr.WordDelimiterFilterFactory generateWordParts=1
generateNumberParts=1 catenateWords=1 catenateNumbers=1
catenateAll=0 splitOnCaseChange=1/ filter
class=solr.LowerCaseFilterFactory/ !-- filter
class=solr.EnglishPorterFilterFactory protected=protwords.txt/ --
filter class=solr.SnowballPorterFilterFactory
language=French / filter
class=solr.RemoveDuplicatesTokenFilterFactory/
/analyzer analyzer type=query
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.SynonymFilterFactory
synonyms=synonyms.txt
ignoreCase=true
expand=true/ filter
class=solr.StopFilterFactory
words=stopwords.txt
ignoreCase=true /filter
class=solr.WordDelimiterFilterFactory generateWordParts=1
generateNumberParts=1 catenateWords=0 catenateNumbers=0
catenateAll=0 splitOnCaseChange=1/ filter
class=solr.LowerCaseFilterFactory/ !-- filter
class=solr.EnglishPorterFilterFactory protected=protwords.txt/ --
filter class=solr.SnowballPorterFilterFactory
language=French / filter
class=solr.RemoveDuplicatesTokenFilterFactory/
/analyzer /fieldType
How can I search parenthesis within my query ?Thanks,P.