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]

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

2019-07-11 Thread evert.wagenaar
ot; Date: 7/11/19 8:38 PM (GMT+08:00) To: java-user@lucene.apache.org Subject: Re: [External] Re: How to ignore certain words based on query specifics I just tested this with the search.highight.Highlighter class.Is this the 'old default highlighter'?I phrased my question badly.Of c

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

2019-07-11 Thread Shifflett, David [USA]
I just tested this with the search.highight.Highlighter class. Is this the 'old default highlighter'? I phrased my question badly. Of course the stop words shouldn't be highlighted, as they wouldn't match any query. My question was really, would the stop words be available for inclusion in the hi

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

2019-07-10 Thread Michael Sokolov
I'm not au courant with highlighters as I used to be. I think some of them work using postings, and for those, no, you wouldn't be able to highlight stop words. But maybe you can use the old default highlighter that would reanalyze the document from a stored field, using an Analyzer that doesn't re

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

2019-07-09 Thread Shifflett, David [USA]
Michael, Thanks for your reply. You are correct, the desired effect is to not match 'freedom ...'. I hadn't considered the case where both free* and freedom match. My solution 'free* and not freedom' would NOT match either of your examples. I think what I really want is Get every matching term f