You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (Commented) (JIRA)" <ji...@apache.org> on 2011/12/04 19:36:39 UTC

[jira] [Commented] (LUCENE-3618) FST suggester should allow saving to Directory (not just File)

    [ https://issues.apache.org/jira/browse/LUCENE-3618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162437#comment-13162437 ] 

Dawid Weiss commented on LUCENE-3618:
-------------------------------------

These methods are implementations of the Lookup API contract. Would it make more sense to change that instead? Storing to a Lucene Directory would be possible if we exposed the internal FSTCompletion (or FST). No problem with adding a facade method for doing all this, it's just a matter of choice if we want to stick to Lookup API or add more methods to a specific subclass.
                
> FST suggester should allow saving to Directory (not just File)
> --------------------------------------------------------------
>
>                 Key: LUCENE-3618
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3618
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/spellchecker
>            Reporter: Michael McCandless
>
> Currently FSTCompletionLookup has a store method, taking "File storeDir", which it treats as a directory and then saves the FST to file "fst.bin" inside there.
> I think we should also add a store method taking a Lucene Directory?  Eg then I can store my suggest FST in a RAMDir.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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