We are trying to use H2 Lucene full text search functionality. It works great. Now we are asked to give weight for specific fields in the H2 (at index creation time, not during search). Say column 1 to have weight of 100 and column 2 would be 50 (as it is less important field). This is same as “field boost” functionality in lucene. Is it possible to do this boost functionality in H2 lucene full text search, during the index creation?
Also i am not sure how we can get the relevancy Lucene score in H2?
You would need to change the Lucene support within H2. It’s only one class that needs to be changed, the class FullTextLucene.
You could then submit a patch to the H2 mailing list, so it get’s included in the next version of H2.