You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ryan McKinley <ry...@gmail.com> on 2013/03/14 01:23:59 UTC

NRT persistant flags?

I'm looking for a way to quickly flag/unflag documents.

This could be one at a time or by query (even *:*)

I have hacked together something based on ExternalFileField that is
essentially a FST holding all the ids (solr not lucene).  Like the
FieldCache, it holds a WeakHashMap<AtomicReader,OpenBitSet> where the
OpenBitSet is loaded by iterating the FST on the reader (just like
ExternalFileField)

This seems to work OK, but there *must* be something better!

Any ideas on the right approach for something like this?  This feels like
it should be related to DocValues or the FieldCache

Thanks for any pointers!

ryan

Re: NRT persistant flags?

Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Ryan,

https://issues.apache.org/jira/browse/SOLR-4085 but it's not an NRT


On Thu, Mar 14, 2013 at 9:47 PM, Ryan McKinley <ry...@gmail.com> wrote:

> (reposting from solar-user)
>
> I'm looking for a way to quickly flag/unflag documents in solr.
>
> This could be one at a time or by query (even *:*)
>
> I have hacked together something based on ExternalFileField that is
> essentially a FST holding all the ids (solr not lucene).  Like the
> FieldCache, it holds a WeakHashMap<AtomicReader,OpenBitSet> where the
> OpenBitSet is loaded by iterating the FST on the reader (just like
> ExternalFileField)
>
> This seems to work OK, but there *must* be something better!
>
> Any ideas on the right approach for something like this?  This feels like
> it should be related to DocValues or the FieldCache
>
> Thanks for any pointers!
>
> ryan
>
>
>
>


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
 <mk...@griddynamics.com>

Fwd: NRT persistant flags?

Posted by Ryan McKinley <ry...@gmail.com>.
(reposting from solar-user)

I'm looking for a way to quickly flag/unflag documents in solr.

This could be one at a time or by query (even *:*)

I have hacked together something based on ExternalFileField that is
essentially a FST holding all the ids (solr not lucene).  Like the
FieldCache, it holds a WeakHashMap<AtomicReader,OpenBitSet> where the
OpenBitSet is loaded by iterating the FST on the reader (just like
ExternalFileField)

This seems to work OK, but there *must* be something better!

Any ideas on the right approach for something like this?  This feels like
it should be related to DocValues or the FieldCache

Thanks for any pointers!

ryan