Demo: Personal Q/A site using Lucene

2020-09-23 Thread Ali Akhtar
Hey guys, Just wanted to show you my new personal site: https://ali.actor You can put in any question about me and it finds the closest match (from about 100 documents fed into it) using Lucene + some extra magic on the backend. Hosted on a $5 box on AWS! Ali.

Re: Fuzzy Search Scoring Adjustment

2020-09-23 Thread Uwe Schindler
You can create a different RewriteMethod for MultiTermQueries (see the default used by Fuzzy query). This one is used to convert the FuzzyQuery on rewrite to a BooleanQuery. To achieve what you want to have just create a subclass of RewriteMethod that uses a DisjunctionMaxQuery instead of Boolea

Fuzzy Search Scoring Adjustment

2020-09-23 Thread Eastlack, Kainoa
When performing a fuzzy search inside a BooleanQuery, it looks like the default behavior is to score all fuzzy matches separately and then sum them up to get an aggregate score. However, I need it to instead score based on the maximum of each distinct match it might find, rather than the sum of the

ArrayIndexOutOfBoundsException errors querying MemoryIndex

2020-09-23 Thread Albert MacSweeny
Hi all, After upgrading projects from Lucene 3.0.0 to 8.5.2, I'm getting an error appearing sometimes during a load test. Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 128 at org.apache.lucene.util.BytesRefHash$1.get(BytesRefHash.java:181) ~[luc