I'm searching a collection of documents.
When I build my results page I provide a link to each document. If the
user click the link I display the document with all the matched terms
highlighted. I need to supply my highlighter a list of words to hilight
in the doc.
I thought the highlighter might be able to return a list of hits "per"
document since it is highliting a fragment.
Scott
On 8/16/2015 1:44 PM, Erick Erickson wrote:
This isn't going to be easy. Why do you need to know? Especially
with wildcards this'll be "challenging".
For the specific docs that are returned, highlighting will tell you _some_
of them. Why only some? Because usually only the best N snippets are
returned, say 3 (it's configurable). And it's still possible that four terms
beginning with "mar" were in the returned doc (or N+1...).
FWIW,
Erick
On Sun, Aug 16, 2015 at 10:48 AM, Scott Derrick <sc...@tnstaafl.net> wrote:
with a query like
q=mar*
I tried the debugQuery=true but it just said
rawquerystring": "mar*",
"querystring": "mar*",
"parsedquery": "_text_:mar*",
"parsedquery_toString": "_text_:mar*",
I already know that!
one document match's Mary
another matches Mary and martyr
I will look at splainer.io
Scott
-------- Original Message --------
Subject: Re: Query term matches
From: Toke Eskildsen <t...@statsbiblioteket.dk>
To: solr-user@lucene.apache.org <solr-user@lucene.apache.org>
Date: 08/16/2015 11:39 AM
Scott Derrick <sc...@tnstaafl.net> wrote:
Is there a way to get the list of terms that matched in a query response?
Add debug=query to your request:
https://wiki.apache.org/solr/CommonQueryParameters#debug
You might also want to try
http://splainer.io/
- Toke Eskildsen
--
No one can make you feel inferior without your consent.
Eleanor Roosevelt
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus