apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.67k stars 1.03k forks source link

FastVectorHighlighter: support DisjunctionMaxQuery [LUCENE-2243] #3319

Closed asfimport closed 14 years ago

asfimport commented 14 years ago

Add DisjunctionMaxQuery support in FVH.


Migrated from LUCENE-2243 by Koji Sekiguchi (@kojisekig), resolved Jan 30 2010 Attachments: LUCENE-2243.patch Linked issues:

asfimport commented 14 years ago

Koji Sekiguchi (@kojisekig) (migrated from JIRA)

The fix attached. I'll commit later today.

asfimport commented 14 years ago

Simon Willnauer (@s1monw) (migrated from JIRA)

Koji, could you use a foreach loop instead of the iterator... just my 0.02$

            DisjunctionMaxQuery dmq = (DisjunctionMaxQuery)sourceQuery;
            for (Query query : dmq) {
              flatten(query, flatQueries);
            }

simon

asfimport commented 14 years ago

Koji Sekiguchi (@kojisekig) (migrated from JIRA)

Koji, could you use a foreach loop instead of the iterator... just my 0.02$

Sure. Committed revision 904776.