[
https://issues.apache.org/jira/browse/LUCENE-7630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15821888#comment-15821888
]
ASF GitHub Bot commented on LUCENE-7630:
----------------------------------------
GitHub user xabbu42 opened a pull request:
https://github.com/apache/lucene-solr/pull/138
EdgeNGramTokenFilter drops payloads
Test and fix for https://issues.apache.org/jira/browse/LUCENE-7630.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/xabbu42/lucene-solr edgepayloads
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/138.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 #138
----
commit 61e45283061ae486acc5882c5a770025c8291222
Author: Nathan Gass <[email protected]>
Date: 2017-01-09T13:59:31Z
add test that EdgeNGram filter keeps payloads
commit 6570e6ecc2b14a28da9873948083791ba47145d0
Author: Nathan Gass <[email protected]>
Date: 2017-01-09T14:00:21Z
copy all attributes including payload to new tokens
commit 01f2a87c67392a86b533d0c76ba7666845d1945f
Author: Nathan Gass <[email protected]>
Date: 2017-01-13T14:54:07Z
use captureState and restoreState instead of cloneAttributes
----
> EdgeNGramTokenFilter drops payloads
> -----------------------------------
>
> Key: LUCENE-7630
> URL: https://issues.apache.org/jira/browse/LUCENE-7630
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Affects Versions: master (7.0)
> Reporter: Nathan Gass
> Assignee: Uwe Schindler
> Priority: Minor
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Using an EdgeNGramTokenFilter after a DelimitedPayloadTokenFilter discards
> the payloads, where as most other filters copy the payload to the new tokens.
> I added a test for this issue and a possible fix at
> https://github.com/xabbu42/lucene-solr/tree/edgepayloads
> Greetings
> Nathan Gass
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]