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

Mihai Caraman edited comment on LUCENE-3441 at 9/21/11 3:45 PM:
----------------------------------------------------------------

Newb question: Shouldn't you also commit in the constructor, so you can create 
a reader right after? For example, to work with the taxReader with refresh(), I 
have to initialize: 
w= LuceneTaxonomyWriter(x),
w.commit(),
new LuceneTaxonomyReader(x), 
else it throws no segment exception(segments which you'd expect to be there 
because of the taxWriter ctor, or is that just me:P ?).

      was (Author: mihai caraman):
    Newb question: Shouldn't you also commit in the constructor, so you can 
create a reader right after? For exmaple, to work with the taxReader with 
refresh(), I have to initialize: taxWriter,commit,taxReader, else it throws no 
segment exception(which you'd expect to be there because of the taxWriter ctor, 
or is that just me:P ?).
  
> Add NRT support to LuceneTaxonomyReader
> ---------------------------------------
>
>                 Key: LUCENE-3441
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3441
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: modules/facet
>            Reporter: Shai Erera
>            Priority: Minor
>
> Currently LuceneTaxonomyReader does not support NRT - i.e., on changes to 
> LuceneTaxonomyWriter, you cannot have the reader updated, like 
> IndexReader/Writer. In order to do that we need to do the following:
> # Add ctor to LuceneTaxonomyReader to allow you to instantiate it with 
> LuceneTaxonomyWriter.
> # Add API to LuceneTaxonomyWriter to expose its internal IndexReader
> # Change LTR.refresh() to return an LTR, rather than void. This is actually 
> not strictly related to that issue, but since we'll need to modify refresh() 
> impl, I think it'll be good to change its API as well. Since all of facet API 
> is @lucene.experimental, no backwards issues here (and the sooner we do it, 
> the better).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to