[
https://issues.apache.org/jira/browse/LUCENE-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13784444#comment-13784444
]
Areek Zillur commented on LUCENE-5251:
--------------------------------------
Hey Michael,
Thanks for reviewing the patch!
The patch does not duplicate the files but shows two git commits on the new
files. The first one was the actual implementation + tests and the second one
removes all the debug printlns that were put in for inspection. (someday I will
try to use svn :)). It does look confusing.
I am aware of that problem and was thinking along the same lines, have ONLY
TermFreqPayloadIterator (maybe should be named something like EntryIterator? as
there will be no TermFreqIterator and co) and have it accepted for all the
suggester and let the suggester throw exceptions if it does not support
payload/weight. I would be happy to open up an issue and work on it!
I will upload another patch incorporating all your other comments!
> New Dictionary Implementation for Suggester consumption
> -------------------------------------------------------
>
> Key: LUCENE-5251
> URL: https://issues.apache.org/jira/browse/LUCENE-5251
> Project: Lucene - Core
> Issue Type: New Feature
> Components: core/search
> Reporter: Areek Zillur
> Attachments: LUCENE-5251.patch
>
>
> With the vast array of new suggester, It would be nice to have a dictionary
> implementation that could feed the suggesters terms, weights and (optionally)
> payloads from the lucene index.
> The idea of this dictionary implementation is to grab stored documents from
> the index and use user-configured fields for terms, weights and payloads.
> use-case: If you have a document with three fields
> - product_id
> - product_name
> - product_popularity_score
> then using this implementation would enable you to have a suggester for
> product_name using the weight of product_popularity_score and return you the
> payload of product_id, with which you can do further processing on (example:
> construct a url etc).
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]