+text:a +b
-- Jack Krupansky
-----Original Message-----
From: Bing Hua
Sent: Thursday, January 31, 2013 12:59 PM
To: solr-user@lucene.apache.org
Subject: Search match all tokens in Query Text
Hello,
I have a field text with type text_general here.
<fieldType name="text_general" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory" />
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.WordDelimiterFilterFactory" splitOnCaseChange="0"
splitOnNumerics="0" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory" />
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.WordDelimiterFilterFactory" splitOnCaseChange="0"
splitOnNumerics="0" />
</analyzer>
</fieldType>
When I query for text:a b, solr returns results that contain only a but not
b. That is, it uses OR operator between the two tokens.
Am I right here? What should I do to force an AND operator between the two
tokens?
Thanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/Search-match-all-tokens-in-Query-Text-tp4037758.html
Sent from the Solr - User mailing list archive at Nabble.com.