Re: currency based search using query time calculated field match with expression

2021-09-03 Thread Michael Sokolov
Sorry I'm not sure I understand what you're trying to do. Maybe you want to match a document having a computed value? This is going to be potentially costly, potentially requiring post-filtering of all hits matching for other reasons. I think there is a FunctionQuery/FunctionRangeQuery that might h

Re: Automatic prefix search in query parser

2021-09-03 Thread Gauthier Roebroeck
Thank a lot Erik, I didn't thought about changing the index, only about the query. I will explore that route. On Fri, 3 Sep 2021, 22:53 Erik Hatcher, wrote: > A comparable alternative would be to use the edge ngram filter to index > prefixes instead. > > Erik > > > > On Sep 3, 2021, at 1

Re: Question about readVint & writeVint from DataOutput and DataInput

2021-09-03 Thread Aaron Cohen
Thank you for the clarification. > On Sep 3, 2021, at 10:46 AM, Uwe Schindler wrote: > > They are fully supported, so you can write and read them. > > The problem with negative numbers is that they need lot of (disk) space, > because in two's complement they have almost all bits set. The large

Re: Automatic prefix search in query parser

2021-09-03 Thread Erik Hatcher
A comparable alternative would be to use the edge ngram filter to index prefixes instead. Erik > On Sep 3, 2021, at 10:49 AM, Gauthier Roebroeck > wrote: > > Hello, > > I am using Apache Lucene 8.9.0 to parse queries that are entered by humans. > I am using the > `org.apache.lucen

Automatic prefix search in query parser

2021-09-03 Thread Gauthier Roebroeck
Hello, I am using Apache Lucene 8.9.0 to parse queries that are entered by humans. I am using the `org.apache.lucene.queryparser.classic.MultiFieldQueryParser` which works very well so far. However I would like to automatically use the prefix notation (`*`) for all terms in the query, instead of

Re: Question about readVint & writeVint from DataOutput and DataInput

2021-09-03 Thread Uwe Schindler
They are fully supported, so you can write and read them. The problem with negative numbers is that they need lot of (disk) space, because in two's complement they have almost all bits set. The largest number is kinds of disk space is -1. Negative numbers appear in older index formats, so they

Question about readVint & writeVint from DataOutput and DataInput

2021-09-03 Thread Aaron Cohen
While reading the Lucene JavaDoc I came across writeVInt & readVInt from DataOutput and DataInput base

ApacheCon is just 3 weeks away!

2021-09-03 Thread Rich Bowen
[You are receiving this email because you are subscribed to the user list of one or more Apache project.] Dear Apache enthusiast, ApacheCon is our annual convention, featuring content related to our many software projects. This year, it will be held on September 21-23. Registration is free t

Re: currency based search using query time calculated field match with expression

2021-09-03 Thread Kumaran Ramasubramanian
Hi Michael, Thanks for the response. Based on my understanding, we can use the expressions module in lucene to reorder search results using custom score calculations based on expression using stored fields. But i am not sure how to do the same for lucene document hits(doc hits matching 2 USD with