You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Andrzej Bialecki <ab...@getopt.org> on 2012/02/24 21:03:01 UTC

undeleteAll() and delete(int) in trunk?

Hi,

What are the equivalents of the 3.x IndexReader.undeleteAll() and 
IR.delete(int) in trunk? I guess with the read-only readers this should 
be a function of IndexWriter now, but I can't figure out how this is 
supposed to work ... or is this functionality no longer available?

-- 
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


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


Re: undeleteAll() and delete(int) in trunk?

Posted by Andrzej Bialecki <ab...@getopt.org>.
On 24/02/2012 22:15, Simon Willnauer wrote:
> IndexReader is ReadOnly now. you can't undelete / delete by DocID
> anymore. The norms hell is gone too and should be implemented via
> DocValues and IW. there are thoughts and issues open which I don't
> recall from the top of my head.
>
> hope that give some clarification

Not really. I get the first part about readers being read-only, that's 
fine. But it's still not clear to me how to use IndexWriter (or some 
other api) to undeleteAll, delete by docId, or modify norms without 
updating a document - all of which was possible in 3.x and had real use 
cases.


-- 
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


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


Re: undeleteAll() and delete(int) in trunk?

Posted by Simon Willnauer <si...@googlemail.com>.
IndexReader is ReadOnly now. you can't undelete / delete by DocID anymore.
The norms hell is gone too and should be implemented via DocValues and IW.
there are thoughts and issues open which I don't recall from the top of my
head.

hope that give some clarification

simon

On Fri, Feb 24, 2012 at 10:05 PM, Andrzej Bialecki <ab...@getopt.org> wrote:

> On 24/02/2012 21:03, Andrzej Bialecki wrote:
>
>> Hi,
>>
>> What are the equivalents of the 3.x IndexReader.undeleteAll() and
>> IR.delete(int) in trunk? I guess with the read-only readers this should
>> be a function of IndexWriter now, but I can't figure out how this is
>> supposed to work ... or is this functionality no longer available?
>>
>
> .. and how to modify norms, while we're at it...
>
>
>
> --
> Best regards,
> Andrzej Bialecki     <><
>  ___. ___ ___ ___ _ _   ______________________________**____
> [__ || __|__/|__||\/|  Information Retrieval, Semantic Web
> ___|||__||  \|  ||  |  Embedded Unix, System Integration
> http://www.sigram.com  Contact: info at sigram dot com
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.**org<de...@lucene.apache.org>
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: undeleteAll() and delete(int) in trunk?

Posted by Andrzej Bialecki <ab...@getopt.org>.
On 24/02/2012 21:03, Andrzej Bialecki wrote:
> Hi,
>
> What are the equivalents of the 3.x IndexReader.undeleteAll() and
> IR.delete(int) in trunk? I guess with the read-only readers this should
> be a function of IndexWriter now, but I can't figure out how this is
> supposed to work ... or is this functionality no longer available?

.. and how to modify norms, while we're at it...


-- 
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


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