overall task is not clear to me, but if you want to "field's all terms have
matched to user query" i'd suggest to introduce your own Similarity:
 - write number of terms as a norm value (which is by default a byte per
doc per field), then
 - you'll be able to retrieve this number during search time and use for
evaluating your own "mm - criteria".
WDYT?

On Thu, Oct 4, 2012 at 9:28 PM, rhl4tr <rhl4...@gmail.com> wrote:

> I am using edismax for guessing category from user query.
>
> If user says "I want to buy BMW and Audi car". This query will be fed to
> edismax which will give me results based on phrase match.
>
> Field contains following values
> -BMW => Cars category
> -Audi => Cars
> -2 BHK => Real Estate
> -need job => jobs category
> -Buy 1Bhk - Apartments
>
> I get results with phrase matches on top.
>
> Generally top result will be a phrase match (if there are any). How can I
> know that field's all terms have matched to user query.
>
> e.g.
> mm => percentage of user query terms should match with field terms
>
> I want opposite => percentage of field values should match with user query.
> which is in my case 100% => phrase match
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Identify-exact-search-in-edismax-tp4011859.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Tech Lead
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to