Repository navigation
Keyword Match Operator (from old wiki) #3975
Closed
chenlica
started this conversation in
archived-wiki
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
From the page https://github.com/apache/texera/wiki/Keyword-Match-Operator (may be dangling)
====
Authors: Akshay Jain, Prakul Agarwal
Reviewers: Chen Li
Synopsis
Implement an operator wrapping Lucene's search capability to support perform keyword and phrase search.
Status
As of 5/30/2016: COMPLETED
Modules:
Related Issues:
#31
Description
Keyword Operator performs Keyword Search and Phrase Search. It implements an iterator-based design, and the
getNextTuple()function should be used to get the next result.Keyword Search:
It take as Keyword Predicate as the input with a query type as
KeywordOperator.BASIC. It usesIndexBasedScanOperator, which returns a superset of the desired results. It then filters these results and updates theSpaninformation accordingly.Phrase Search:
It takes as Keyword Predicate as the input with a query type as
KeyWordOperator.PHRASE. It usesIndexBasedScanOperator. Using the results andSpaninformation for theIndexBasedScanOperator, it extracts the exact text from the document and updates theSpaninformation accordingly.Performance Test
Machine configuration : MacBook Pro (Early 2011), 2.3 GHz Intel Core i5, 4 GB 1333 MHz DDR3
Index time: 59.8610 seconds.
Lucene Query time: 1.3160 seconds.
Match time: 10.7240 seconds.
Total: 539 results.
Lucene Query time: 1.8380 seconds
Match time: 0.4580 seconds
Total: 23 results
index time: 655.8610 seconds
Lucene Query time: 4.8050 seconds
Match time: 7192.9650 seconds
Total: 9114 results
Lucene Query time: 6.8490 seconds
Match time: 18.4780 seconds
Total: 514 results
All reactions