GitHub user niqueco opened a pull request:
https://github.com/apache/lucene-solr/pull/231
WordDelimiterGraphFilter: Better support for camel case splitting.
Before WordDelimiterGraphFilter only looked at pairs of characters, now (if
enabled) it will split when an upper case character is followed by another
upper case character and then there's a lower case character. Like this in
HTTPRequest: 'P' <break> 'R' 'e'
It will also break the word when a lower case character is followed by a
number.
With this flag these splits happen:
- HTTPRequest -> HTTP Request
- 3DPlot -> 3D Plot
- Plot3D -> Plot 3D
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/niqueco/lucene-solr better-camel-case-support
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/231.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 #231
----
commit 89d18cc9510777223458191727f0c94dec9505f1
Author: Nicolás Lichtmaier <[email protected]>
Date: 2017-08-11T19:49:15Z
Added a new camelCase option to WordDelimiterGraphFilter that enables
better support for camel case.
Before WordDelimiterGraphFilter only looked at pairs of characters, now (if
enabled) it will split when an upper case character is followed by another
upper case character and then there's a lower case character. Like this in
HTTPRequest: 'P' <break> 'R' 'e'
It will also break the word when a lower case character is followed by a
number.
With this flag these splits happen:
HTTPRequest -> HTTP Request
3DPlot -> 3D Plot
Plot3D -> Plot 3D
----
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]