I want to get highlighted results for more like this queries. More like this doesn't support highlighting.
So what I did was ran a more like this query (I have the source document A and say I get three similar documents back A1, A2, and A3). I then create a second query where I use the contents of A as the query. More specifically, I have all a subset of my fields being appended to a multivalued "catchall" field. I use A's concatenated catchall (with punctuation removed) as the search: q=catchall:(*CONCATENATED_A_CATCHALL_TEXT*) And I limit the results to the three documents A1/A2/A3 via qf: qf=id*:A1_ID*+id*:A2_ID*+id*:A3_ID* Now I get highlighted results. But my main problem is very frequent terms (for/the/to/in...) are highlighted. I would have thought these would be excluded via inverse document frequency (since they show up in just about every document). Is there a way to improve the highlighting? (Remove the less important terms, set some threshold, etc) Matt