We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any way to know which field was matched on to cause a search result to appear? For example, if I had the following document in the index,
{ field1: 'some value', field2: 'another one' }
and I run idx.search('some'), it should match on field1. Is there any way to know that it matched on field1 and not field2?
idx.search('some')
field1
field2
The text was updated successfully, but these errors were encountered:
What's your actual use case?
Sorry, something went wrong.
The document(s) returned are the actual matches
That's possible with lunr but unfortunately not this elasticlunr (at least I could not find a way to do it).
Related: #96
No branches or pull requests
Is there any way to know which field was matched on to cause a search result to appear? For example, if I had the following document in the index,
and I run
idx.search('some')
, it should match onfield1
. Is there any way to know that it matched onfield1
and notfield2
?The text was updated successfully, but these errors were encountered: