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 Rohan Thakur <ro...@gmail.com> on 2013/03/15 14:19:23 UTC

wanted to know can we some how know what are the documents that are exact match in solr

hi all

I need to pass some variable or some flag with the exact match document
than the others like say I have 3 terms in the search query so I need to
know the documents in which all three words are found from the other
documents in which only 1 or 2 out of three terms are matched.

any help would be great
thanks
regards
rohan

Re: wanted to know can we some how know what are the documents that are exact match in solr

Posted by Jack Krupansky <ja...@basetechnology.com>.
Basically, you're defining an application-specific feature, so either you 
implement the feature in your application code, or as a custom search 
component. In either case, you would need to examine the "explain" details.

The debug.explain.structured query parameter can be used to retrieve the 
explain info in XML that can be traversed without parsing the raw text of 
the normal explain section.

If you do a custom search component you can directly access and traverse the 
Lucene Explain structure without any parsing.

-- Jack Krupansky

-----Original Message----- 
From: Rohan Thakur
Sent: Tuesday, March 19, 2013 3:24 AM
To: solr-user@lucene.apache.org
Subject: Re: wanted to know can we some how know what are the documents that 
are exact match in solr

yes that I know but I want to know that is there way I can separate them in
search results...the exact match one?

On Fri, Mar 15, 2013 at 10:18 PM, Jack Krupansky 
<ja...@basetechnology.com>wrote:

> The "explain" section that is returned if you specify the &debugQuery=true
> parameter will provides the details of what terms matched for each 
> document.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Rohan Thakur
> Sent: Friday, March 15, 2013 9:19 AM
> To: solr-user@lucene.apache.org
> Subject: wanted to know can we some how know what are the documents that
> are exact match in solr
>
>
> hi all
>
> I need to pass some variable or some flag with the exact match document
> than the others like say I have 3 terms in the search query so I need to
> know the documents in which all three words are found from the other
> documents in which only 1 or 2 out of three terms are matched.
>
> any help would be great
> thanks
> regards
> rohan
> 


Re: wanted to know can we some how know what are the documents that are exact match in solr

Posted by Rohan Thakur <ro...@gmail.com>.
yes that I know but I want to know that is there way I can separate them in
search results...the exact match one?

On Fri, Mar 15, 2013 at 10:18 PM, Jack Krupansky <ja...@basetechnology.com>wrote:

> The "explain" section that is returned if you specify the &debugQuery=true
> parameter will provides the details of what terms matched for each document.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Rohan Thakur
> Sent: Friday, March 15, 2013 9:19 AM
> To: solr-user@lucene.apache.org
> Subject: wanted to know can we some how know what are the documents that
> are exact match in solr
>
>
> hi all
>
> I need to pass some variable or some flag with the exact match document
> than the others like say I have 3 terms in the search query so I need to
> know the documents in which all three words are found from the other
> documents in which only 1 or 2 out of three terms are matched.
>
> any help would be great
> thanks
> regards
> rohan
>

Re: wanted to know can we some how know what are the documents that are exact match in solr

Posted by Jack Krupansky <ja...@basetechnology.com>.
The "explain" section that is returned if you specify the &debugQuery=true 
parameter will provides the details of what terms matched for each document.

-- Jack Krupansky

-----Original Message----- 
From: Rohan Thakur
Sent: Friday, March 15, 2013 9:19 AM
To: solr-user@lucene.apache.org
Subject: wanted to know can we some how know what are the documents that are 
exact match in solr

hi all

I need to pass some variable or some flag with the exact match document
than the others like say I have 3 terms in the search query so I need to
know the documents in which all three words are found from the other
documents in which only 1 or 2 out of three terms are matched.

any help would be great
thanks
regards
rohan