Question regarding UnifiedHighlighter and SynonymGraphFilter

2022-09-13 Thread Rune Stilling
Hi list I’m using the SynonymGraphFilter in Lucene 8.11 together with the UnifiedHighlighter class. I’m not sure if they are supposed to work seamlessly together but I’m having issues with the highlighter showing partial matches of multi token synonym phrases. Ie. the word “in” in the following

Re: Multiply instead of summing two scores

2014-04-12 Thread Rune Stilling
0.7); } } } } return returnValue; } } public CustomScoreProvider getCustomScoreProvider(AtomicReaderContext context) throws IOException { return new MatchedField(context); } } Den 11/04/2014 kl. 16.41 skrev Rune Stilling : > Hi list > > Normally w

Multiply instead of summing two scores

2014-04-11 Thread Rune Stilling
of query dependent document boost. I can’t find out where to determine/control this behavior in Lucene i.e.. how the document weight is calculated from each term weight. With regards, Rune Stilling - To unsubscribe, e-mail

Re: Adding custom weights to individual terms

2014-02-14 Thread Rune Stilling
rmsEnum.docFreq(); > > //logger.warn("term:"+wandTerm.queryTerm +" :" + ub); > > DocsAndPositionsEnum docsPositionEnum = > termsEnum.docsAndPositions(acceptDocs, null); > > > tts.add(newWandPosting(fieldName,bytes,docsPositio

Re: Adding custom weights to individual terms

2014-02-13 Thread Rune Stilling
y case. So it seems I might as well build my own term lists and code the indexing and searching process manually? With regards, Rune > Mike McCandless > > http://blog.mikemccandless.com > > > On Thu, Feb 13, 2014 at 2:40 AM, Rune Stilling wrote: >> Hi list >> &

Re: Adding custom weights to individual terms

2014-02-13 Thread Rune Stilling
; >> What are these term weights? Are you sure you can't compute these >> weights at search time with a custom similarity using the stats that >> are already stored (docFreq, totalTermFreq, maxDoc, etc.)? >> >> Mike McCandless >> >> http://blog.mikem

Re: Adding custom weights to individual terms

2014-02-13 Thread Rune Stilling
y case. So it seems I might as well build my own term lists and code the indexing and searching process manually? With regards, Rune > Mike McCandless > > http://blog.mikemccandless.com > > > On Thu, Feb 13, 2014 at 2:40 AM, Rune Stilling wrote: >> Hi list >> &

Adding custom weights to individual terms

2014-02-12 Thread Rune Stilling
Hi list I’m trying to figure out how customizable scoring and weighting is in the Lucene API. I read about the API’s but still can’t figure out if the following is possible. I would like to do normal document text indexing, but I would like to control the weight added to tokens my self, also I