lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From revas <revas...@gmail.com>
Subject Help on this parsed query
Date Wed, 25 Nov 2009 11:43:27 GMT
I have the text analyzer defined as follows


<fieldType name="text" class="solr.TextField" positionIncrementGap="100">

<analyzer type="index">

<tokenizer class="solr.WhitespaceTokenizerFactory"/>

<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" preserveOriginal="1" />

<filter class="solr.LowerCaseFilterFactory"/>

<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>

<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" ignoreCase="true"
words="stopwords.txt"/>

<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1" catenateWords="0" catenateNumbers="0"
catenateAll="0" splitOnCaseChange="1" preserveOriginal="1"/>

<filter class="solr.LowerCaseFilterFactory"/>

<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>

<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>

</analyzer>

</fieldType>



when i search on this field  name simple of the above field type , the term
peRsonal

*I expect it to search as   simple:personal   simple :pe simple:rsonal*



instead the parsed query string says

<str name="*rawquerystring*">*simple:peRsonal*</str>
 * * <str name="*querystring*">*simple:peRsonal*</str>
 * * <str name="*parsedquery*">*MultiPhraseQuery(simple:"(person pe)
rsonal")*</str>
 * * <str name="*parsedquery_toString*">*simple:"(person pe) rsonal"*</str>


what is this multiphrase query ,why is this a phrase query istead of simple
query?


Regards
Revas

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message