lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dojolava <>
Subject matching fields and highlighting
Date Fri, 18 Jan 2008 16:08:10 GMT

I am new to solr and lucene and have a question concerning information about
the term matching in lucene.

For a few reasons (mainly field based security restrictions) I need to know
which fields in my result documents matched the query
e.g. I would like to have something like
<arr name="matching fields">

I would also like to have highlighting/snippets over all fields without
appending all of them with hl.fl= . Something like hl.fl=* (would this be a
big performance issue?)
This is because I might have a lot of dynamic fields in the future, that
also should be highlighted. From the highlight information I could then
retrieve the fields where a queryterm matched....

Another possibilty would be to retrieve all matched terms (not the query
terms, but the ones that resulted in a match), like in the highlighting, I
could then parse the results myself again (need to do this for some reasons
anyway) and look in which fields they match.

Does anybody know how to solve this problem? Or does anybody maybe already
have a RequestHandler or Highlighter that does this?

Any help would be much appreciated.

Thank you, Mathis

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message