It works but....
Solr 3.6 changes the request:
ic:H04L12/56
by
ic:"H04L12 56" (debugQuery=true)
result count seems to be ok
but if I do
H04L12/5* then I get 0 results.... (H04L12* returns more than 80 000
results)
I have the same result without autoGeneratePhraseQueries=true,
it's because in Solr3.6 troncature * is not permitted inside a " "
argh.....not good for me....
Is exists another solution instead of autoGeneratePhraseQueries=true ?
Le 19/02/2013 16:47, Bruno Mannina a écrit :
oh great, I'm testing on my dev' environment.
I will keep you informed
Le 19/02/2013 16:45, Jack Krupansky a écrit :
No, it's just part of the query generation process, so reindexing is
not needed.
-- Jack Krupansky
-----Original Message----- From: Bruno Mannina
Sent: Tuesday, February 19, 2013 7:41 AM
To: solr-user@lucene.apache.org
Subject: Re: Problem when I search something that contains a forward
slash?
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