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 Andrea D'Ippolito <ad...@gmail.com> on 2009/10/22 11:19:02 UTC

Ram Index

Does exit a corrispondence for the Lucene Ram Index in Solr?

if yes, how can I use it?

(do you think it fits even in acts_as_solr for Rails?)

thanks

Andrea

Re: Ram Index

Posted by Andrea D'Ippolito <ad...@gmail.com>.
2009/10/22 Erik Hatcher <er...@gmail.com>

> There is a DirectoryFactory in Solr that could be used to make Lucene's
> RAMDirectory.  But then you'd have to reindex everything when restarting
> Solr.  Doesn't seem to make much practical sense to use it, not even for
> performance reasons thanks to Lucene and Solr both caching what they need
> fast anyway.
>
>        Erik


I see, thanks.

Actually I'd need it to apply solr search to a subset of element ids given
by a MySql query. It's should work as a replacement for find_by_solr
"keywords AND (id:(1) OR id:(20) .. )"
that doesn't seem so practical to use.

Thanks again ;)

Andrea



>
>
> On Oct 22, 2009, at 5:19 AM, Andrea D'Ippolito wrote:
>
>  Does exit a corrispondence for the Lucene Ram Index in Solr?
>>
>> if yes, how can I use it?
>>
>> (do you think it fits even in acts_as_solr for Rails?)
>>
>> thanks
>>
>> Andrea
>>
>
>

Re: Ram Index

Posted by Erik Hatcher <er...@gmail.com>.
There is a DirectoryFactory in Solr that could be used to make  
Lucene's RAMDirectory.  But then you'd have to reindex everything when  
restarting Solr.  Doesn't seem to make much practical sense to use it,  
not even for performance reasons thanks to Lucene and Solr both  
caching what they need fast anyway.

	Erik

On Oct 22, 2009, at 5:19 AM, Andrea D'Ippolito wrote:

> Does exit a corrispondence for the Lucene Ram Index in Solr?
>
> if yes, how can I use it?
>
> (do you think it fits even in acts_as_solr for Rails?)
>
> thanks
>
> Andrea