RE: Search results/criteria validation

2021-03-17 Thread Siraj Haider
Does that mean that we will need to wrap each clause of our Boolean query in order to check it for all clauses? -- Regards -Siraj Haider (212) 306-0154 -Original Message- From: Michael Sokolov Sent: Wednesday, March 17, 2021 4:13 PM To: java-user@lucene.apache.org Cc: Diego Ceccarel

RE: Search results/criteria validation

2021-03-17 Thread Siraj Haider
Thanks for the response Paul, it would be great if you can point me to that discussion. -- Regards -Siraj Haider (212) 306-0154 -Original Message- From: Paul Libbrecht Sent: Wednesday, March 17, 2021 4:02 PM To: java-user@lucene.apache.org; Diego Ceccarelli Subject: Re: Search resu

Re: Search results/criteria validation

2021-03-17 Thread Michael Sokolov
See https://issues.apache.org/jira/browse/LUCENE-9640 On Wed, Mar 17, 2021 at 4:02 PM Paul Libbrecht wrote: > > Explain is a heavyweight thing. Maybe it helps you, maybe you need > something high-performance. > > I was asking a similar question ~10 years ago and got a very interesting > answer on

Re: Search results/criteria validation

2021-03-17 Thread Paul Libbrecht
Explain is a heavyweight thing. Maybe it helps you, maybe you need something high-performance. I was asking a similar question ~10 years ago and got a very interesting answer on this list. If you want I can try to dig this to find it. At the end, and with some limitation in the number of queri

Re:Search results/criteria validation

2021-03-17 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
Maybe using explain? https://chrisperks.co/2017/06/06/explaining-lucene-explain/ It might slow down the performance.. Cheers, Diego From: java-user@lucene.apache.org At: 03/17/21 17:26:14To: java-user@lucene.apache.org Cc: shuo@jobdiva.com Subject: Search results/criteria validation

Search results/criteria validation

2021-03-17 Thread Siraj Haider
Hello there, We are looking to check what part of criteria matched for the document to be included in the results. So, for example our criteria is "(A or B or C) and (D or E)" and documents 1,2,3 came back in results. Can we check for each of the documents, which parts of criteria matched? So,

Re: Lucene custom scoring / analyzer

2021-03-17 Thread Charlie Hull
I think you'll need a SpanQuery with the inOrder flag set: https://lucene.apache.org/core/8_8_1/core/org/apache/lucene/search/spans/SpanNearQuery.html Charlie On 17/03/2021 10:30, Vlad Smirnovskiy wrote: Hello! I`d like to do something like that: When I add a document and some text is going wi

Lucene custom scoring / analyzer

2021-03-17 Thread Vlad Smirnovskiy
Hello! I`d like to do something like that: When I add a document and some text is going with (e.g.) quotes it should mean that this text has to be exactly in the query. Better with an examples - text: green "blue apple" juice query : blue apple - result: hit. query : blue apple juice - result: h