Hi Bruno,

[image: <!>] Solr 4.0 added regular expression support, which means that
'/' is now a special character and must be escaped if searching for literal
forward slash.

http://wiki.apache.org/solr/SolrQuerySyntax

So, you can either escape it or use quotes like "A01H2/001"

Cheers,
Sandeep



On 19 February 2013 11:40, Bruno Mannina <bmann...@free.fr> wrote:

> 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
>
>
>
>

Reply via email to