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

Fix highlighting apis to highlight more than 1 doc at once #11223

Closed
rmuir opened this issue May 19, 2015 · 5 comments
Closed

Fix highlighting apis to highlight more than 1 doc at once #11223

rmuir opened this issue May 19, 2015 · 5 comments
Labels
>enhancement help wanted adoptme high hanging fruit PITA :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@rmuir
Copy link
Contributor

rmuir commented May 19, 2015

Highlighting apis seem to only handle one document at a time, but this totally breaks PostingsHighlighter design on elasticsearch.

The whole idea behind this highlighter is #queryterms < #summarydocs. But performance totally falls apart because today documents are highlighted one at a time.

@rmuir rmuir added the PITA label May 19, 2015
@javanna
Copy link
Member

javanna commented May 20, 2015

+1 it might be tricky to move the postings hl to highlight multiple documents at a time while maintaining the per document usecase needed with plain and fvh, but it's worth investing in making the postings highlighter work as it should. I will look into this.

@javanna javanna self-assigned this May 20, 2015
@nik9000
Copy link
Member

nik9000 commented May 20, 2015

Cool! That'll be useful!

The experimental_highlighter will actually need to decide which order to do
them in based on the mapping definition so I think the best thing to do
is to push that decision to the highlighters - like push the whole loop
over the documents into them.

For the postings highlighter I think the optimal ordering is segments,
fields, then docs, right? Or is it just fields then docs?

On Wed, May 20, 2015 at 4:20 AM, Luca Cavanna notifications@github.com
wrote:

+1 it might be tricky to move the postings hl to highlight multiple
documents at a time while maintaining the per document usecase needed with
plain and fvh, but it's worth investing in making the postings highlighter
work as it should. I will look into this.


Reply to this email directly or view it on GitHub
#11223 (comment)
.

@rmuir
Copy link
Contributor Author

rmuir commented May 20, 2015

postingshighlighter in lucene takes your ordinary TopDocs and does any internal resorting itself. You should also give it all the fields to highlight at once too. It knows how to do the right thing.

@jimczi
Copy link
Contributor

jimczi commented Mar 22, 2018

The postings highlighter has been removed in 6 but the unified highlighter could also benefit from this. For complex query this re-design could speed up things not only because we highlight one document at a time but also because we analyze the query for each highlighted field in each document.
cc @elastic/es-search-aggs

@rjernst rjernst added the Team:Search Meta label for search team label May 4, 2020
@javanna
Copy link
Member

javanna commented Jun 18, 2024

This has been open for quite a while, and we were not able to prioritize it so far. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed.

@javanna javanna closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
@javanna javanna added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement help wanted adoptme high hanging fruit PITA :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

6 participants