orientdb-lucene icon indicating copy to clipboard operation
orientdb-lucene copied to clipboard

Fixes #47 by adding support for QueryParser options

Open retrography opened this issue 10 years ago • 7 comments

Here is the current query + options syntax:

SELECT filename FROM hash_table WHERE [block, hash] LUCENE {"q":"block:768 AND hash:wemfOGxqCfOTPi0ND~", "LowerCaseExpandedTerms": "false", "ParserType": "classic"}

Option terms are case insensitive.

Added support for all the options exposed by the setter methods of org.apache.lucene.queryparser.classic.QueryParserBase:

AllowLeadingWildcard, AnalyzeRangeTerms, AutoGeneratePhraseQueries, DateResolution, DateResolution, DefaultOperator, FuzzyMinSim, FuzzyPrefixLength, Locale, LowercaseExpandedTerms, MultiTermRewriteMethod, PhraseSlop, TimeZone

Also implemented the following additional option:

ParserType: Overrides the automatic parser type selection (which is based on the parentheses found in the query) in order to allow some specific use cases.

retrography avatar May 31 '15 04:05 retrography

@maggiolo00 WDYT about this?

lvca avatar Aug 07 '15 15:08 lvca

+1 I did start to support the json syntax to add options to the query. So it is really cool. I will check it more later. Thanks @retrography

wolf4ood avatar Aug 07 '15 15:08 wolf4ood

Great! Looking forward to trying it soon -- probably next week.

retrography avatar Aug 07 '15 18:08 retrography

@maggiolo00 and @robfrank WDYT about this PR?

lvca avatar Nov 13 '15 05:11 lvca

@retrography Please could you sign the Clahub license (Apache2)?

lvca avatar Nov 13 '15 05:11 lvca

@lvca Done!

retrography avatar Nov 13 '15 23:11 retrography

@robfrank Is this merged in the codebase on the main project?

lvca avatar Jun 01 '16 07:06 lvca