How to ignore certain words based on query specifics

2019-07-09 Thread Shifflett, David [USA]
Hi all, I have a configuration file that lists multiple queries, of all different types, and that lists words to be ignored. Each of these lists is user configured, variable in length and content. I know that, in general, unless the ignore word is in the query it won’t match, but I need to be abl

Re: How to ignore certain words based on query specifics

2019-07-09 Thread Shifflett, David [USA]
Ceccarelli Could you please describe the use case? maybe there is an easier solution From: "Shifflett, David [USA]" Date: Tuesday, July 9, 2019 at 8:02 AM To: "java-user@lucene.apache.org" Subject: How to ignore certain words based on query specifics Hi all, I have a configura

Re: [External] Re: How to ignore certain words based on query specifics

2019-07-09 Thread Shifflett, David [USA]
zed the ignore words should only apply to relevant (matching) queries. > > I don’t want the users to be required to add ‘and not WORD’ many times to each of the listed queries. > > David Shifflett > > From: Diego Ceccarelli > > Could you pl

Re: [External] Re: How to ignore certain words based on query specifics

2019-07-11 Thread Shifflett, David [USA]
ot sure if that exists any more, maybe someone else will know. On Tue, Jul 9, 2019, 10:17 AM Shifflett, David [USA] < shifflett_da...@bah.com> wrote: > Michael, > Thanks for your reply. > > You are correct, the desired effect is to not match &#

Re: [External] Re: How to ignore certain words based on query specifics

2019-07-11 Thread Shifflett, David [USA]
h Summary makes it more clear what the Hit is about.Not sure but I think Google does the same in search summaries.-Evert Original message From: "Shifflett, David [USA]" Date: 7/11/19 8:38 PM (GMT+08:00) To: java-user@lucene.apache.org Subject: Re: [External]

ComplexPhraseQueryParser isn't switching search terms to lowercase with StandardAnalyzer

2019-10-21 Thread Shifflett, David [USA]
Hi all, Using the code snippet: ComplexPhraseQueryParser qp = new ComplexPhraseQueryParser(“somefield”, new StandardAnalyzer()); String teststr = "\"Foo Bar\"~2"; Query queryToSearch = qp.parse(teststr); System.out.println("Query : " + queryToSearch.toString()); System.out.prin

Re: [External] Re: ComplexPhraseQueryParser isn't switching search terms to lowercase with StandardAnalyzer

2019-10-21 Thread Shifflett, David [USA]
David,- which version of Lucene are You using? Best regards On 10/21/19 1:31 PM, Shifflett, David [USA] wrote: > Hi all, > Using the code snippet: > ComplexPhraseQueryParser qp = new ComplexPhraseQueryParser(“somefield”, new StandardAnalyzer())

Re: [External] Re: ComplexPhraseQueryParser isn't switching search terms to lowercase with StandardAnalyzer

2019-10-22 Thread Shifflett, David [USA]
:\"j* smyth~\"~5", "1,2,3"); checkMatches("role:\"p* manager\" AND name:jack*", "4"); checkMatches("+role:developer +name:jack*", ""); - checkMatches("name:\"john smith\"~2 AND role:designer AND id:3"

Re: [External] Re: ComplexPhraseQueryParser isn't switching search terms to lowercase with StandardAnalyzer

2019-10-22 Thread Shifflett, David [USA]
ue, Oct 22, 2019 at 5:26 PM Shifflett, David [USA] < shifflett_da...@bah.com> wrote: > Mikhail, > > Thanks for running those tests. > I haven’t looked into the test, but can you confirm it uses an analyzer > with the lowercase filter? > Loo

Why would a search using a ComplexPhraseQueryParser throw an exception for some content, but not all content?

2021-08-17 Thread Shifflett, David [USA]
I am using Lucene 8.2, but have also verified this on 8.9. My query string is either ""by~1 word~1"", or ""ky~1 word~1"". I am looking for a phrase of these 2 words, with potential 1 character misspelling, or fuzziness. I realize that 'by' is usually a stop word, that is why I also tested with

I am getting an exception in ComplexPhraseQueryParser when fuzzy searching

2021-11-01 Thread Shifflett, David [USA]
I am using Lucene 8.2, but have also verified this on 8.9 and 8.10.1. My query string is either ""by~1 word~1"", or ""ky~1 word~1"". I am looking for a phrase of these 2 words, with potential 1 character misspelling, or fuzziness. I realize that 'by' is usually a stop word, that is why I also test

I am getting an exception in ComplexPhraseQueryParser when fuzzy searching

2021-11-12 Thread Shifflett, David [USA]
I am using Lucene 8.2, but have also verified this on 8.9 and 8.10.1. My query string is either ""by~1 word~1"", or ""ky~1 word~1"". I am looking for a phrase of these 2 words, with potential 1 character misspelling, or fuzziness. I realize that 'by' is usually a stop word, that is why I also tes

Re: [External] Re: Can lucene be used in Android ?

2022-09-11 Thread Shifflett, David [USA]
Hi Uwe, I am a little confused by your 2 statements. > Lucene 9.x series requires JDK 11 to run > The main branch is already on JDK 17 Will Lucene 9.x run on JDK 17? Is 9.x 'the main branch'? Thanks, David Shifflett Senior Lead Technologist Enterprise Cross Domain Solutions (ECDS) Booz Allen Ha

Migrating WhitespaceTokenizerFactory from 8.2 to 9.4

2022-10-28 Thread Shifflett, David [USA]
I am migrating my project’s usage of Lucene from 8.2 to 9.4. The migration documentation has been very helpful, but doesn’t help me resolve this exception: ‘Caused by: java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.analysis.TokenizerFactory with name 'whitespace' does n

Streaming documents into the index breaks highlighting

2022-11-17 Thread Shifflett, David [USA]
Hi, I am converting my application from reading documents into memory, then indexing the documents to streaming the documents to be indexed. I quickly found out this required that the field NOT be stored. I then quickly found out that my highlighting code requires the field to be stored. I’ve be

Re: [External] Streaming documents into the index breaks highlighting

2022-11-17 Thread Shifflett, David [USA]
Just to clarify, Is there a highlighting option that doesn't require the text from the matched document? David Shifflett On 11/17/22, 1:57 PM, "Shifflett, David [USA]" wrote: Hi, I am converting my application from reading documents into memory, then indexin

How to highlight fields that are not stored?

2023-02-13 Thread Shifflett, David [USA]
Hi, I am converting my application from reading documents into memory, then indexing the documents to streaming the documents to be indexed. I quickly found out this required that the field NOT be stored. I then quickly found out that my highlighting code requires the field to

Re: [External] Re: How to highlight fields that are not stored?

2023-02-16 Thread Shifflett, David [USA]
ted form. Otherwise what text would you highlight? On Mon, Feb 13, 2023 at 3:46 PM Shifflett, David [USA] mailto:shifflett_da...@bah.com.inva>lid> wrote: > > Hi, > I am converting my application from > reading documents into memory, then indexing the documents > to streaming t