You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jochen Barth <ba...@ub.uni-heidelberg.de> on 2014/05/13 15:18:01 UTC

Highlighting: single id:... x1000 vs (id: OR id: ... x1000)

Dear reader,

I'll like to highlight very large ocr docs (termvectors=true etc.).
Therefore I've made a separate "highlight store collection" where i'll
want to higlight ids selected from an other query from a separate
collection (containing the same ids).

Now querying like this:


q=ocr:abc AND id:x1 hl=true hl.fl=ocr hl.useFastVector... ...
q=ocr:abc AND id:x2 hl=true hl.fl=ocr hl.useFastVector......
q=ocr:abc AND id:x3 hl=true hl.fl=ocr hl.useFastVector......
q=ocr:abc AND id:x4 hl=true hl.fl=ocr hl.useFastVector......

... till x1000 works very much faster than

q=ocr:abc AND (id:x1 OR id:x2 OR id:x3 OR id... ... id:x1000)

Why?

Kind regards,
Jochen barth


-- 
J. Barth * IT, Universitaetsbibliothek Heidelberg * 06221 / 54-2580

pgp public key:
http://digi.ub.uni-heidelberg.de/barth%40ub.uni-heidelberg.de.asc