Hi Jack,
If I do this modification:
autoGeneratePhraseQueries=true attribute to the text_general field type
Must I re-index my index ?
thanks for this information,
Bruno
Le 19/02/2013 16:35, Jack Krupansky a écrit :
Add the autoGeneratePhraseQueries=true attribute to the text_general
field type, or create your own field type with that attribute set.
Otherwise, XX/YY is treated as "XX OR YY".
-- Jack Krupansky
-----Original Message----- From: Bruno Mannina
Sent: Tuesday, February 19, 2013 3:40 AM
To: solr-user@lucene.apache.org
Subject: Problem when I search something that contains a forward slash?
Dear Solr Users,
I use Solr 3.6
I have a field name IC which contains IPC codes with a forward slash
inside like:
A01H2/001
G06F1/023
C01C3/147
G06F3/023
etc...
My definition for this field is:
<field name="ic" type="text_general" indexed="true" stored="true"
multiValued="true"/>
If i try to search:
ic:G06F3/023
http://xxxxxxxx:yyyy/solr/select/?q=ic%3AG06F3%2F023&version=2.2&start=0&rows=10&indent=on
the result is wrong.
When I use debugQuery, I see that the forward slash split the request as:
<str name="parsedquery_toString">ic:g06f3 ic:023</str>
How can I search a term that contains a / (forward slash)?
Thanks a lot for your help,
Bruno