You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by DHast <ha...@gmail.com> on 2009/09/18 15:37:32 UTC
want to features of a 'text' field with the non stemming of a
'string' field
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?
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.
Re: want to features of a 'text' field with the non stemming of a
'string' field
Posted by DHast <ha...@gmail.com>.
ok, used the built in fieldtype text_ws that seems to go well
DHast wrote:
>
> i have looked, and seem to be running into a dead end every time i try it,
> but again it may be because of the caching and me not realizing it was
> doing it till my hair was half pulled.
>
> i dont suppose youd be willing to give a hint then?
>
>
>
> Grant Ingersoll-6 wrote:
>>
>>
>> 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
>>
>>
>>
>
>
--
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-tp25508780p25510178.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: want to features of a 'text' field with the non stemming of a
'string' field
Posted by DHast <ha...@gmail.com>.
i have looked, and seem to be running into a dead end every time i try it,
but again it may be because of the caching and me not realizing it was doing
it till my hair was half pulled.
i dont suppose youd be willing to give a hint then?
Grant Ingersoll-6 wrote:
>
>
> 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
>
>
>
--
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-tp25508780p25509828.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: want to features of a 'text' field with the non stemming of a 'string' field
Posted by Grant Ingersoll <gs...@apache.org>.
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