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 Markus Jelsma <ma...@openindex.io> on 2011/03/03 11:07:37 UTC

Re: perfect match in dismax search

Use either the string fieldType or a field with very little analysis 
(KeywordTokenizer + LowercaseFilter).

> How to obtain perfect match with dismax query??
> 
> es:
> 
> i want to search "hello i love you" with deftype=dismax in the title field
> and i want to obtain results which title is exactly "hello i love you" with
> all this terms
> in this order.
> 
> Not less words or other.
> how is it possilbe??
> 
> i tryed with +(hello i love you) but if i have a title which is "hello i
> love you mum" it matches and i don't want!
> 
> Thanx

Re: perfect match in dismax search

Posted by Gastone Penzo <ga...@gmail.com>.
Good work.
It's a great idea

2011/3/3 Jan Høydahl <ja...@cominvent.com>

> Hi,
>
> I'm working on a Filter which enables boundary match using syntax
> title:"^hello I love you$"
> which will make sure that the match is exact. See SOLR-1980 (no working
> patch yet)
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
>
> On 3. mars 2011, at 11.07, Markus Jelsma wrote:
>
> > Use either the string fieldType or a field with very little analysis
> > (KeywordTokenizer + LowercaseFilter).
> >
> >> How to obtain perfect match with dismax query??
> >>
> >> es:
> >>
> >> i want to search "hello i love you" with deftype=dismax in the title
> field
> >> and i want to obtain results which title is exactly "hello i love you"
> with
> >> all this terms
> >> in this order.
> >>
> >> Not less words or other.
> >> how is it possilbe??
> >>
> >> i tryed with +(hello i love you) but if i have a title which is "hello i
> >> love you mum" it matches and i don't want!
> >>
> >> Thanx
>
>


-- 

Gastone Penzo
Webster Srl
www.webster.it
www.libreriauniversitaria.it

Re: perfect match in dismax search

Posted by Jan Høydahl <ja...@cominvent.com>.
Hi,

I'm working on a Filter which enables boundary match using syntax title:"^hello I love you$"
which will make sure that the match is exact. See SOLR-1980 (no working patch yet)

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 3. mars 2011, at 11.07, Markus Jelsma wrote:

> Use either the string fieldType or a field with very little analysis 
> (KeywordTokenizer + LowercaseFilter).
> 
>> How to obtain perfect match with dismax query??
>> 
>> es:
>> 
>> i want to search "hello i love you" with deftype=dismax in the title field
>> and i want to obtain results which title is exactly "hello i love you" with
>> all this terms
>> in this order.
>> 
>> Not less words or other.
>> how is it possilbe??
>> 
>> i tryed with +(hello i love you) but if i have a title which is "hello i
>> love you mum" it matches and i don't want!
>> 
>> Thanx