[
https://issues.apache.org/jira/browse/OAK-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14294954#comment-14294954
]
Tommaso Teofili commented on OAK-2176:
--------------------------------------
Lucene's {{Lookup}} benchmark results on my local machine:
{code}
-- RAM consumption
FuzzySuggester size[B]: 773,064
AnalyzingSuggester size[B]: 773,064
AnalyzingInfixSuggester size[B]: 31,862
JaspellLookup size[B]: 8,616,416
TSTLookup size[B]: 9,313,880
FSTCompletionLookup size[B]: 375,160
WFSTCompletionLookup size[B]: 450,160
-- prefixes: 2-4, num: 7, onlyMorePopular: false
FuzzySuggester queries: 50001, time[ms]: 2920 [+- 22.56], ~kQPS: 17
AnalyzingSuggester queries: 50001, time[ms]: 960 [+- 14.25], ~kQPS: 52
AnalyzingInfixSuggester queries: 50001, time[ms]: 1288 [+- 65.98], ~kQPS: 39
JaspellLookup queries: 50001, time[ms]: 168 [+- 5.75], ~kQPS: 298
TSTLookup queries: 50001, time[ms]: 495 [+- 19.72], ~kQPS: 101
FSTCompletionLookup queries: 50001, time[ms]: 455 [+- 7.07], ~kQPS: 110
WFSTCompletionLookup queries: 50001, time[ms]: 386 [+- 5.24], ~kQPS: 129
-- prefixes: 6-9, num: 7, onlyMorePopular: false
FuzzySuggester queries: 50001, time[ms]: 4263 [+- 31.21], ~kQPS: 12
AnalyzingSuggester queries: 50001, time[ms]: 492 [+- 9.51], ~kQPS: 102
AnalyzingInfixSuggester queries: 50001, time[ms]: 693 [+- 43.38], ~kQPS: 72
JaspellLookup queries: 50001, time[ms]: 102 [+- 6.02], ~kQPS: 490
TSTLookup queries: 50001, time[ms]: 61 [+- 4.20], ~kQPS: 813
FSTCompletionLookup queries: 50001, time[ms]: 340 [+- 16.56], ~kQPS: 147
WFSTCompletionLookup queries: 50001, time[ms]: 124 [+- 6.76], ~kQPS: 405
-- construction time
FuzzySuggester input: 50001, time[ms]: 925 [+- 510.69]
AnalyzingSuggester input: 50001, time[ms]: 696 [+- 39.42]
AnalyzingInfixSuggester input: 50001, time[ms]: 1014 [+- 429.04]
JaspellLookup input: 50001, time[ms]: 29 [+- 2.57]
TSTLookup input: 50001, time[ms]: 123 [+- 16.89]
FSTCompletionLookup input: 50001, time[ms]: 212 [+- 58.03]
WFSTCompletionLookup input: 50001, time[ms]: 688 [+- 542.23]
-- prefixes: 100-200, num: 7, onlyMorePopular: false
FuzzySuggester queries: 50001, time[ms]: 4754 [+- 77.95], ~kQPS: 11
AnalyzingSuggester queries: 50001, time[ms]: 465 [+- 4.77], ~kQPS: 108
AnalyzingInfixSuggester queries: 50001, time[ms]: 532 [+- 16.89], ~kQPS: 94
JaspellLookup queries: 50001, time[ms]: 76 [+- 1.89], ~kQPS: 660
TSTLookup queries: 50001, time[ms]: 28 [+- 1.40], ~kQPS: 1774
FSTCompletionLookup queries: 50001, time[ms]: 332 [+- 6.50], ~kQPS: 151
WFSTCompletionLookup queries: 50001, time[ms]: 90 [+- 3.12], ~kQPS: 557
{code}
> Support for using query engine for search suggestions
> -----------------------------------------------------
>
> Key: OAK-2176
> URL: https://issues.apache.org/jira/browse/OAK-2176
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: oak-lucene, oak-solr, query
> Affects Versions: 1.1.0
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Fix For: 1.1.6
>
>
> Related to OAK-2175 search engines are often used for term suggestions (e.g.
> for autocompletion, search as you type, etc.) which I think would be good to
> support also in Oak, especially having both Lucene
> (https://lucene.apache.org/core/4_10_0/suggest/org/apache/lucene/search/suggest/Lookup.html)
> and Solr (https://wiki.apache.org/solr/Suggester
> https://wiki.apache.org/solr/TermsComponent) already implementing this
> functionality.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)