Mailing List Archive

Is deleting with IndexReader still possible?
Hi

According to the FAQ one can delete documents using the IndexReader

https://cwiki.apache.org/confluence/display/lucene/lucenefaq#LuceneFAQ-HowdoIdeletedocumentsfromtheindex?

but when I look at the javadoc of Lucene version 8_8_2

https://lucene.apache.org/core/8_8_2/core/org/apache/lucene/index/IndexWriter.html
https://lucene.apache.org/core/8_8_2/core/org/apache/lucene/index/IndexReader.html

then it seems to me, that deleting documents is only possible with
IndexWriter, but not anymore with IndexReader, right?

Thanks

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Is deleting with IndexReader still possible? [ In reply to ]
Good catch Michael, removing from IndexReader has actually been removed a
long time ago. I just edited the FAQ to correct this.

On Thu, Jun 17, 2021 at 10:08 AM Michael Wechner <michael.wechner@wyona.com>
wrote:

> Hi
>
> According to the FAQ one can delete documents using the IndexReader
>
>
> https://cwiki.apache.org/confluence/display/lucene/lucenefaq#LuceneFAQ-HowdoIdeletedocumentsfromtheindex
> ?
>
> but when I look at the javadoc of Lucene version 8_8_2
>
>
> https://lucene.apache.org/core/8_8_2/core/org/apache/lucene/index/IndexWriter.html
>
> https://lucene.apache.org/core/8_8_2/core/org/apache/lucene/index/IndexReader.html
>
> then it seems to me, that deleting documents is only possible with
> IndexWriter, but not anymore with IndexReader, right?
>
> Thanks
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

--
Adrien
Re: Is deleting with IndexReader still possible? [ In reply to ]
cool, thanks very much for your quick response and updating the FAQ!


Am 17.06.21 um 10:28 schrieb Adrien Grand:
> Good catch Michael, removing from IndexReader has actually been removed a
> long time ago. I just edited the FAQ to correct this.
>
> On Thu, Jun 17, 2021 at 10:08 AM Michael Wechner <michael.wechner@wyona.com>
> wrote:
>
>> Hi
>>
>> According to the FAQ one can delete documents using the IndexReader
>>
>>
>> https://cwiki.apache.org/confluence/display/lucene/lucenefaq#LuceneFAQ-HowdoIdeletedocumentsfromtheindex
>> ?
>>
>> but when I look at the javadoc of Lucene version 8_8_2
>>
>>
>> https://lucene.apache.org/core/8_8_2/core/org/apache/lucene/index/IndexWriter.html
>>
>> https://lucene.apache.org/core/8_8_2/core/org/apache/lucene/index/IndexReader.html
>>
>> then it seems to me, that deleting documents is only possible with
>> IndexWriter, but not anymore with IndexReader, right?
>>
>> Thanks
>>
>> Michael
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>


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