Hello,

I have a django haystack index having two multivalued field.

class ProductIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)
    categories = indexes.MultiValueField(faceted=True)
    keywords = indexes.MultiValueField(faceted=True)

I need to match/autocomplete on both the fields categories and keywords. 
However, I want to sort them using the matching score - like first full 
word matches and then later on partial matches.

I know we can have autocomplete by using EdgeNgrams etc, but the real issue 
is of sorting. Can anyone help me with this?

-- 
You received this message because you are subscribed to the Google Groups 
"django-haystack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-haystack+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to