Hi,

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 - www.cominvent.com
Training in Europe - www.solrtraining.com

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
> 

Reply via email to