lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Ramos Jardim <alexander.ramos.jar...@gmail.com>
Subject Re: Why this document does not match?
Date Tue, 10 Apr 2012 09:41:58 GMT
Ok. But I am not querying for fifa 12. I am querying fifa12. There's no
white spaces :(

2012/4/9 Chris Hostetter <hossman_lucene@fucit.org>

>
> : > itemNameSearch:fifa defaultSearchField:12
>
> : That's exactly what's happening! Why does this happen?
>
> whyspace is meaningful to the query parser: it tells the query parser
> there are multiple clauses for a boolean query.
>
> if you want to search for any works the user typed in the field
> "itemNameSearch" then you can either set the default search field to
> itemNameSearch...
>        df=itemNameSearch & q=fifa 12
> ...or put parens arround the words you want to search for in a specific
> field...
>        q=itemNameSearch:(fifa 12)
>
> -Hoss
>



-- 
Alexander Ramos Jardim

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message