[ 
https://issues.apache.org/jira/browse/LUCENE-5350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Areek Zillur updated LUCENE-5350:
---------------------------------

    Attachment: LUCENE-5350.patch

Initial (rough) Patch:
  - Add contexts and hasContexts to InputIterator
  - Add support to Analyzing suggester to handle contexts
  - Add new ContextAwareSuggester (proxies Analyzing Suggester)
  - Add tests for ContextAwareSuggester

TODO:
  - The patch "breaks" the Lookup API (I think its better to have LookupOptions 
that encapsulates the query-time input to suggesters)
  - Add context and hasContexts support to all impl of InputIterator
  - General refactoring
  - Add FuzzySuggester support
  - Add docs

This patch demonstrates the idea; If the approach makes sense, the appropriate 
changes to the API will be the next task. Feedback, thoughts welcome! It would 
also be nice to figure out a way so that we dont have to subclass 
AnalyzingSuggester to 'use' it.

> Add Context Aware Suggester
> ---------------------------
>
>                 Key: LUCENE-5350
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5350
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/search
>            Reporter: Areek Zillur
>             Fix For: 5.0, 4.7
>
>         Attachments: LUCENE-5350.patch
>
>
> It would be nice to have a Context Aware Suggester (i.e. a suggester that 
> could return suggestions depending on some specified context(s)).
> Use-cases: 
>   - location-based suggestions:
>       -- returns suggestions which 'match' the context of a particular area
>           --- suggest restaurants names which are in Palo Alto (context -> 
> Palo Alto)
>   - category-based suggestions:
>       -- returns suggestions for items that are only in certain 
> categories/genres (contexts)
>           --- suggest movies that are of the genre sci-fi and adventure 
> (context -> [sci-fi, adventure])



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to