Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlighting not working when i am adding field name in query with sorting #402

Closed
nisha-kajale opened this issue Feb 29, 2016 · 1 comment

Comments

@nisha-kajale
Copy link

Hi,

When i write a query as - attr_field:"test" and sort it by another field in ASCENDING order.
I am not getting any result in highlighting.

But if a write a query as - attr_field:"test" and sort it by SAME FIELD AS ABOVE in DESCENDING order i am getting results highlighted.

Can anyone help me ?

@basdenooijer
Copy link
Member

It might be that the sort in descending order simply returns the worst matches, which have no highlighting results. But it's hard to say without knowing the index and the data.

Does the 'attr_field' field contain the exact word 'test' for the documents that have no highlighting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants