lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Bialecki (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1316) Create autosuggest component
Date Thu, 12 Nov 2009 16:19:39 GMT

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

Andrzej Bialecki  updated SOLR-1316:
------------------------------------

    Attachment: suggest.patch

Updated patch that includes the new TST sources. Tests on a 100k-words dictionary yield very
similar results for the TST and Jaspell implementations, i.e. the initial build time is around
600ms, and then the lookup time is around 4-7ms for prefixes that yield more than 100 results.

To test it put this in your solrconfig.xml:

{code:xml}
  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
    <lst name="spellchecker">
      <str name="name">suggest</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str name="lookupImpl">org.apache.solr.spelling.suggest.jaspell.JaspellLookup</str>
      <str name="field">text</str>
      <str name="sourceLocation">american-english</str>
    </lst>
  </searchComponent>

...


{code}

And then use e.g. the following parameters:

{noformat}
spellcheck=true&spellcheck.build=true&spellcheck.dictionary=suggest& \
spellcheck.extendedResults=true&spellcheck.count=100&q=test
{noformat}

> Create autosuggest component
> ----------------------------
>
>                 Key: SOLR-1316
>                 URL: https://issues.apache.org/jira/browse/SOLR-1316
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Jason Rutherglen
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: suggest.patch, suggest.patch, TST.zip
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Autosuggest is a common search function that can be integrated
> into Solr as a SearchComponent. Our first implementation will
> use the TernaryTree found in Lucene contrib. 
> * Enable creation of the dictionary from the index or via Solr's
> RPC mechanism
> * What types of parameters and settings are desirable?
> * Hopefully in the future we can include user click through
> rates to boost those terms/phrases higher

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message