On Sep 18, 2009, at 6:37 AM, DHast wrote:
when i have my fieldname: text set as a text field, advanced search
queries
work very well, but when i have it set as a string it seems to
ignore them,
like proximity searching and so on.
example: text as string:
<str name="rawquerystring">text:"law order"~33</str>
<str name="querystring">text:"law order"~33</str>
<str name="parsedquery">text:law order</str>
<str name="parsedquery_toString">text:law order</str>
text as text:
<str name="rawquerystring">text:"law order"~32
</str>
<str name="querystring">text:"law order"~32
</str>
<str name="parsedquery">PhraseQuery(text:"law order"~32)</str>
<str name="parsedquery_toString">text:"law order"~32</str>
however when i search a single term, it stems it if its text, example:
text as text:
<str name="rawquerystring">goats
</str>
<str name="querystring">goats
</str>
<str name="parsedquery">text:goat</str>
<str name="parsedquery_toString">text:goat</str>
text as string:
<str name="rawquerystring">nuts
</str>
<str name="querystring">nuts
</str>
<str name="parsedquery">text:nuts</str>
<str name="parsedquery_toString">text:nuts</str>
OR
<str name="rawquerystring">text:goats
</str>
<str name="querystring">text:goats
</str>
<str name="parsedquery">text:goats</str>
<str name="parsedquery_toString">text:goats</str>
so what i want/need, is to STOP the stemming/plural killing that is
happening on the text field,
ideas?
It sounds like you need to dig into your schema.xml a bit more and set
your analysis better. See http://wiki.apache.org/solr/SchemaXml
also, is tehre a way to wipe the cache while testing?
--
View this message in context:
http://www.nabble.com/want-to-features-of-a-%27text%27-field-with-the-non-stemming-of-a-%27string%27-field-tp25508780p25508780.html
Sent from the Solr - User mailing list archive at Nabble.com.
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search