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].
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