Re: implement exact match for one of the search fields only?

2016-02-04 Thread Jack Krupansky
ption:dvd default_searchfield:bracket >> >> And the =query trick will show you exactly how things are actually >> searched, it's invaluable. >> >> Best, >> Erick >> >> On Thu, Jan 28, 2016 at 5:08 AM, Mugeesh Husain <muge...@gmail.com> >>

Re: implement exact match for one of the search fields only?

2016-02-04 Thread Derek Poh
e: Hi, if you are interested phrase query, you should use String field instead of text field in schema like as this will solved you problem. if you are missing anything else let share -- View this message in context: http://lucene.472066.n3.nabble.com/implement-exact-match-for-one-o

Re: implement exact match for one of the search fields only?

2016-01-31 Thread Jan Høydahl
> In our case we want to boost exact search ( not phrase search). > Simply adding the copy field not tokenised with the related boost to the > qf list should be fine. > Am I missing something ? Please try it out and report back. You’ll find that the “qf” param will only ever produce matches for

Re: implement exact match for one of the search fields only?

2016-01-29 Thread Alessandro Benedetti
Still not following. Why you would like to use pf for exact search ( which is different from phrase search) ? Let's summarise : pf Phrase Fields: boosts the score of

Re: implement exact match for one of the search fields only?

2016-01-29 Thread Alessandro Benedetti
Jan sorry If i insist, but I really don't see the benefit. If you use the edismax and a copy field not tokenised, you can apply the boost you want to the exact match, and the query will simply be q=foo. And you obtain exactly what you do without the markers. But please, explain me how your

Re: implement exact match for one of the search fields only?

2016-01-29 Thread Emir Arnautovic
Hi Derek, What if it does not match other fields but just exact match. From original question I assume it should return such results. It seems to me that you are AND-ing your fields and that is the reason why your query is not returning anything. Can you try just exact match field and see if

Re: implement exact match for one of the search fields only?

2016-01-29 Thread Jan Høydahl
Hi Did you try? Sadly, the pf param will not apply to a non-analyzed field, and is not added if query consists of one term only. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 29. jan. 2016 kl. 11.14 skrev Alessandro Benedetti : > > Jan

Re: implement exact match for one of the search fields only?

2016-01-29 Thread Jan Høydahl
ly how things are actually >> searched, it's invaluable. >> >> Best, >> Erick >> >> On Thu, Jan 28, 2016 at 5:08 AM, Mugeesh Husain <muge...@gmail.com> wrote: >>> Hi, >>> if you are interested phrase query, you should use String field inst

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Jan Høydahl
Hi Please look at my github repo with a template for a field type allowing exact match. Typical use is with disMax query parser and the “pf” param. See https://github.com/cominvent/exactmatch -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 28. jan. 2016 kl. 10.52

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Erick Erickson
thing else let share > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/implement-exact-match-for-one-of-the-search-fields-only-tp4253786p4253827.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Jan Høydahl
Depends on what exactly you try to do. I think the Github README explains in what situations my solution excels. Especially if you do not have control over the client application, you simply get a q=foo, then such a setup will allow you to boost exact matches very easily. -- Jan Høydahl,

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Jack Krupansky
gt; if you are interested phrase query, you should use String field instead > of > > text field in schema like as > > > > > > this will solved you problem. > > > > if you are missing anything else let share > > > > > > > > -- > > View this message in context: > http://lucene.472066.n3.nabble.com/implement-exact-match-for-one-of-the-search-fields-only-tp4253786p4253827.html > > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Derek Poh
Hi Emir For the other search fields, if they have matches it should be return. On 1/28/2016 8:17 PM, Emir Arnautovic wrote: Hi Derek, It is not clear what you are trying to achieve: "one of the search fields is an exact phrase match while the rest of the search fields can be exact or partial

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Derek Poh
a like as this will solved you problem. if you are missing anything else let share -- View this message in context: http://lucene.472066.n3.nabble.com/implement-exact-match-for-one-of-the-search-fields-only-tp4253786p4253827.html Sent from the Solr - User mailing list archive at Nabb

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Emir Arnautovic
Hi Derek, It is not clear what you are trying to achieve: "one of the search fields is an exact phrase match while the rest of the search fields can be exact or partial matches". What does "while" mean - it has to match in other fields as well or result should be scored better if it does but

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Mugeesh Husain
Hi, if you are interested phrase query, you should use String field instead of text field in schema like as this will solved you problem. if you are missing anything else let share -- View this message in context: http://lucene.472066.n3.nabble.com/implement-exact-match-for-one

implement exact match for one of the search fields only?

2016-01-28 Thread Derek Poh
Hi First of all, sorry for the long post. How do I implement or structured the query such that one of the search fields is an exact phrase match while the rest of the search fields can be exact or partial matches? Is this possible? I have the following search fields - P_VeryShortDescription

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Alessandro Benedetti
context: > http://lucene.472066.n3.nabble.com/implement-exact-match-for-one-of-the-search-fields-only-tp4253786p4253827.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- -- Benedetti Alessandro Visiting card : http://about.me/alessandro_

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Derek Poh
else let share -- View this message in context: http://lucene.472066.n3.nabble.com/implement-exact-match-for-one-of-the-search-fields-only-tp4253786p4253827.html Sent from the Solr - User mailing list archive at Nabble.com. -- CONFIDENTIALITY NOTICE This e-mail (inclu

Re: implement exact match for one of the search fields only?

2016-01-28 Thread Alessandro Benedetti
Jan, I admit I took a brief look, but what are the benefit of using your strategy instead of an additional not tokenised ( keywordTokenized) copy field ? Cheers On 28 January 2016 at 15:22, Jan Høydahl wrote: > Hi > > Please look at my github repo with a template for a