Log
-
Mention metadata storage format by Caio 5 years ago
-
[maven-release-plugin] prepare release 0.6.1 by Caio 5 years ago
-
Search: Rewrite the query before using it 💬 by Caio 5 years ago
The lucene query derived from SearchQuery is used for count() and search(); Both calls trigger a `IndexSearcher.rewrite(Query)` call, so this patch reduces the duplicated work by rewriting it before usage. Note that this does not mean `rewrite(Query)` won't be called again, just that its subsequent calls will be cheaper.
-
[maven-release-plugin] prepare release 0.6.0 by Caio 5 years ago
-
SearchQuery: Expose a few helpful derived methods by Caio 5 years ago
-
Start allowing empty SearchQuery as an input 💬 by Caio 5 years ago
This patch doesn't do much by itself, but when using a searcher with policy now one will be able to inspect the parsed query, see that it was empty and do whatever it wants (In my current case: rewrite the query as a MatchAllDocsQuery).
-
Introduce SearchPolicy.rewriteParsedSimilarityQuery 💬 by Caio 5 years ago
Works similarly to rewriteParsedFulltextQuery, but for similarity queries.
-
Remove maxDocFreq restriction from moreLikeThis 💬 by Caio 5 years ago
I'm forgoing these performance-related things in favor of search policy logic, so that direct cerberus usage doesn't need to be influenced by production performance tunings.
-
Remove moreLikeThis StopWords setup 💬 by Caio 5 years ago
This set is the same one used by the analyzer, so the tokens will never exist in the stream.
-
[maven-release-plugin] prepare release 0.5.2 by Caio 5 years ago
-
Add similar_ids to the model 💬 by Caio 5 years ago
Precomputed list of similar recipe ids for the generalized case.
-
[maven-release-plugin] prepare release 0.5.1 by Caio 5 years ago
-
Drop unused index fields 💬 by Caio 5 years ago
These are unused since 7244fb1319e5fe6ee03c151a4d102b3399917267
-
[maven-release-plugin] prepare release 0.5.0 by Caio 5 years ago
-
Make SearchPolicy allow rewriting queries 💬 by Caio 5 years ago
This patch changes the query inspection interface to return a Query object, thus allowing for conditional rewrites client-side.
-
Only query FULL_RECIPE when searching 💬 by Caio 5 years ago
This simplifies things for some more complicated policy logic I'd like to implement. I'll leave query smartness for the graph model and generalized logic instead of queryparser magic.
-
Tune MoreLikeThis query building parameters 💬 by Caio 5 years ago
Filter stop words, use a real threshold for doc frequency instead of a percentage.
-
Drop support for `findSimilar(long, int)` 💬 by Caio 5 years ago
While I'm not particularly bothered by the index size increase that this feature requires, it's simpler and a lot more efficient to just pre-compute the similarities and persist in the db.
-
Reference getFieldNameForDiet directly 💬 by Caio 5 years ago
We already do a wildcard static import of the IndexField class
-
Ensure `findSimilar(long, int)` respects maxResults 💬 by Caio 5 years ago
The only way this can happen with a MoreLikeThis-based implementation is if we somehow end up with several distinct recipes with exactly the same content, so this test is more for my future self when trying to make this faster.
-
[maven-release-plugin] prepare release 0.4.0 by Caio 5 years ago
-
Expose findSimilar(recipeId, maxResults) 💬 by Caio 5 years ago
This patch exposes a `Searcher.findSimilar(long, int)` API so that we can make use of already indexed data to find similar recipes to a given (known) recipe id. It's effectively more efficient `Searcher.findSimilar(String, int)` for when we already know the recipe we're querying for similarities.
-
Store term vectors in the FULL_RECIPE index by Caio 5 years ago
-
Add support for searching for a recipeId 💬 by Caio 5 years ago
This patch adds a new LondPoint to the index to allow us to query based on the recipeId. This is useful for using functionality that requires the (out of my control) document Id that lucene generates.