GitHub user adolby opened a pull request:
https://github.com/apache/jena/pull/146
JENA-1180: Add support for ComplexPhraseQueryParser to jena-text
This PR expands on JENA-1134, which added support for new query parsers in
jean-text. ComplexQueryParser is useful for performing wildcard or fuzzy search
on terms in phrases.
Iâve attempted to follow the pattern for adding a query parser as in
JENA-1134, but I may have duplicated some functionality in the unit test, when
I should have restructured instead.
The test needs to specify the TTL spec analyzer and parser, which is
available in TestDatasetWithConfigurableAnalyzerâs method makeSpec. However,
TestDatasetWithConfigurableAnalyzer inherits from
TestDatasetWithKeywordAnalyzer, which isnât the analyzer the
ComplexPhraseQuery needs to test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/adolby/jena master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/146.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #146
----
commit b89f0ea4fcfef4443ce813b8026bb9fda965e668
Author: Andrew Dolby <[email protected]>
Date: 2016-05-15T13:59:38Z
Add support for ComplexPhraseQueryParser to jena-text
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---