Hi

I have a bit more information. It seems that the field_weights do work
but what is happening is that relevancy is being sacrificed for the
contents of :group_clause.

So, ignoring field_weights for a second, I'm wondering should I be
adding "@relevancy DESC" to the beginning of my group_clause or should
I add :order onto the end of the search query,into which I would put
"@relevancy DESC". In which case, which comes first, :group_clause
or :order?

Any suggestions would be appreciated.

Shaun



On Jan 26, 5:09 pm, Shaun <[email protected]> wrote:
> Hello
>
> I have managed to group my records by a certain attribute.
>
> I am now trying to get weighting to work. The index contains two
> fields, one of which I have weighting set higher:
>
> :field_weights = {:title => 100}
>
> The other field I have left, believing it to default to zero and so be
> at the bottom of the pack.
>
> Thing is, if I search for a term that I know exists exactly as is in
> the weighted field, the first document returned is one that contains
> the search term within the text of the non-weighted field.
>
> My question is, would setting group_by and group_clause affect the
> influence of the weighting? If for example, my group_clause was
> causing the said document to display first, regardless of the field
> weight, how can I make field_weight have more affect than my
> group_clause option?
>
> Hope that makes sense?!
>
> Thanks
>
> Shaun

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to