lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl / Cominvent <>
Subject Re: solr string field
Date Mon, 21 Jun 2010 13:43:38 GMT

You either need to quote your string: http://localhost:8983/solr/select?q="sony+vaio"
or to escape the space: http://localhost:8983/solr/select?q=sony\+vaio

If you do not do one of these, your query will be parsed as text:sony OR text:vaio, which
will not match your string field.

Jan Høydahl, search solution architect
Cominvent AS -
Training in Europe -

On 21. juni 2010, at 14.42, ZAROGKIKAS,GIORGOS wrote:

> Hi 
> 	I use a string Field in my solr schema 
> 	but when I query a value with space it doesn't give me results
> 	e.g I have a value "sony vaio" when I query with "sony vaio" I
> get 0 results
> 	but when I query "sony*" I get my results
> 	how can I query a string field with a space between the values 
> 	or how can I have exact search in a string 
> Thanks in advance

View raw message