Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-21 Thread Emmanuel Bernard
On Thu 2014-03-20 18:50, Guillaume Smet wrote: > On Thu, Mar 20, 2014 at 3:08 PM, Emmanuel Bernard > wrote: > > I tend to disagree with you. The SimpleQueryBuilder seems to disagree > > with you too as SHOULD is the default. Care to give your arguments in > > favor of a different value for the def

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-20 Thread Guillaume Smet
On Thu, Mar 20, 2014 at 3:08 PM, Emmanuel Bernard wrote: > I tend to disagree with you. The SimpleQueryBuilder seems to disagree > with you too as SHOULD is the default. Care to give your arguments in > favor of a different value for the default? Well, IMHO, this feature is designed for a specifi

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-20 Thread Emmanuel Bernard
On Tue 2014-03-18 18:26, Guillaume Smet wrote: > Hi, > > On Tue, Mar 4, 2014 at 7:06 PM, Guillaume Smet > wrote: > > I'll post as soon as I have a working prototype of what I would like > > to achieve and then we can discuss from there. > > I finally succeeded in committing a few hours to proto

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-18 Thread Guillaume Smet
Hi, On Tue, Mar 4, 2014 at 7:06 PM, Guillaume Smet wrote: > I'll post as soon as I have a working prototype of what I would like > to achieve and then we can discuss from there. I finally succeeded in committing a few hours to prototype what I have in mind: https://github.com/openwide-java/hiber

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-04 Thread Guillaume Smet
On Tue, Mar 4, 2014 at 6:27 PM, Emmanuel Bernard wrote: > Yes a text() branch injecting whatever from the user and letting the > developer customise what needs to be searched makes sense to me. > We can explore that but I am a bit skeptical that it will turn into a true > `text()` clause rather

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-04 Thread Emmanuel Bernard
On 04 Mar 2014, at 15:02, Guillaume Smet wrote: > On Tue, Mar 4, 2014 at 1:36 PM, Emmanuel Bernard > wrote: >> OK so you want the words hotel + swimming pool to be present somewhere in >> the sum of the corpus of title and description. That's the second case I was >> describing then. Indeed

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-04 Thread Guillaume Smet
On Tue, Mar 4, 2014 at 1:36 PM, Emmanuel Bernard wrote: > OK so you want the words hotel + swimming pool to be present somewhere in the > sum of the corpus of title and description. That's the second case I was > describing then. Indeed it kinda fails if you don't order by score but rather > al

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-04 Thread Emmanuel Bernard
On 04 Mar 2014, at 12:24, Guillaume Smet wrote: > Hi Emmanuel, > > On Tue, Mar 4, 2014 at 11:09 AM, Emmanuel Bernard > wrote: > >> If I understand you, you wan to find several and words and in and my and >> content in title or in summary or in content but all terms should be present >> in o

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-04 Thread Guillaume Smet
Hi Emmanuel, On Tue, Mar 4, 2014 at 11:09 AM, Emmanuel Bernard wrote: >> Here are pointers to the main problems I have: >> 1/ the getAllTermsFromText is cute when you want to OR the terms but >> really bad when you need AND, especially when you use analyzers which >> returns several tokens for a

Re: [hibernate-dev] [AND] Search: changing the way we search

2014-03-04 Thread Emmanuel Bernard
Thanks fo that very valuable input. Let me through some ideas. This email is about the AND problem. On 03 Mar 2014, at 17:11, Guillaume Smet wrote: > > 1/ the aforementioned detail about sorting: we need AND badly in plain > text search; > > > III. So let's add an AND option... >