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

Reply via email to