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 Tomaz Kveder <to...@cmok.si> on 2014/01/20 16:06:39 UTC

Getting all search words relevant for the document to be found

Hi!

I need a little help from you. 

We have complex documents stored in database. On the page we show them from
database. We index them and not store them in Solr. So we can't use Solr
Highlighter. But still we would like to highlight the search words found in
the document. What approach would you suggest? 

Our approuch and idea is hidden in this basic question:
Is it possible to get the list of all search words with which the specific
document was found (with all the language varieties of the word). 

Let me explain what I mean with simplefied example. We index the sentence:
"The big cloud is verry dark". User puts these two words in search box:
"clouds" "dark" "rain". 

Can I get from Solr that that particular document was found because of words
"cloud" and "dark". So we can highlight them in the content. 

Ofcourse we can highlight the exact words user putted in search filed. But
that's not enough. We woul also like to highlight all the language varieties
that the document was found on.

Thanks!

Best regards,

Tomaz