well, short answer, use the analyzer to see whats happening.
long answer
 theres a difference between
name:tv promotion   -->  name:tv default_field:promotion
name:"tv promotion"   -->  name:"tv promotion"
name:tv AND name:promotion --> name:tv AND name:promotion


since your default field most likely isnt name, its going to search only
the default field for it.  you can alter this behavior using qf parameters:



qf='name^5 text'


for example would apply a boost of 5 if it matched the field 'name', and
only 1 for 'text'

On Wed, Jun 7, 2017 at 4:35 PM, OTH <omer.t....@gmail.com> wrote:

> Hello,
>
> I have what I would think to be a fairly simple problem to solve, however
> I'm not sure how it's done in Solr and couldn't find an answer on Google.
>
> Say I have two documents, "TV" and "TV promotion".  If the search query is
> "TV promotion", then, obviously, I would like the document "TV promotion"
> to score higher.  However, that is not the case right now.
>
> My syntax is something like this:
> http://localhost:8983/solr/sales/select?indent=on&wt=
> json&fl=*,score&q=name:tv
> promotion
> (I tried "q=name:tv+promotion (added the '+'), but it made no difference.)
>
> It's not scoring the document "TV promotion" higher than "TV"; in fact it's
> scoring it lower.
>
> Thanks
>

Reply via email to