Hi Adam

I’ve not come across negative weights, but it’s fair to say you’re using more 
complex queries than I generally deal with in my own projects. It’s probably 
worth asking these questions on the Sphinx forum to get a better answer than 
mine :)
http://sphinxsearch.com/forum/ <http://sphinxsearch.com/forum/>

— 
Pat

> On 4 Nov 2015, at 7:28 am, Adam Gamble <[email protected]> wrote:
> 
> So when a user inputs a query like "dog" we send something like this to sphinx
> 
> dog | "cat" | "dog and cat" | "puppy" | "pets" | "animals" | "dog silhouette" 
> | "horse" | "dog isolated" | "walking dog"
> 
> 
> 
> the problem here is that sphinx gives the same weight to dog as it does "cat" 
> or "dog and cat" and we don't want that. so my idea first was to boost the 
> user query like so
> 
> 
> dog^2 | "cat" | "dog and cat" | "puppy" | "pets" | "animals" | "dog 
> silhouette" | "horse" | "dog isolated" | "walking dog"
> 
> 
> 
> Which kinda works, but not perfectly. So I tried
> 
> 
> dog | "cat^-.25" | "dog and cat^-.25" | "puppy^-.25" | "pets^-.25" | 
> "animals^-.25" | "dog silhouette^-.25" | "horse^-.25" | "dog isolated^-.25" | 
> "walking dog^-.25"
> 
> 
> and this makes the user query the most relevant, but seems to basically 
> blocked out related queries. I'm trying to have "dog" results be the most 
> relevant with related terms (the or queries) fall in behind that.
> 
> Is there a canonical way to do something like this? Also is negative query 
> weights even a supported thing?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/thinking-sphinx 
> <http://groups.google.com/group/thinking-sphinx>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to