Hi

The faceting module in Lucene is very generic and extendable in many ways.
>From the little I read about Solr facets, I think that all of its features
can be implemented on top of Lucene facets. Some directly with the code
that exists today, some with writing few extensions points. I don't
remember a feature that requires adding low-level changes to the code, but
if there is one, I promise to do the work ! :)

I wrote few blogs on Lucene facets recently (http://shaierera.blogspot.com)
and intend to write a few more, delving in depth on some features such as
complements, sampling, partitions, associations as well as some other
advanced/expert stuff. Mike and I also opened few issues to get the code
more "modern" w/ Lucene 4.x capabilities, e.g. explore DocValues,
PackedInts and more.

Yonik, unlike Solr facets (which manage everything in the search index),
the Lucene module comes with a sidecar taxonomy index, so e.g. when Solr
replicates shards, it will need to replicate one other index files. That's
the big difference, the rest are miniscule I think. And of course, Solr has
a much higher level API than Lucene, so we'll need to translate those APIs
to the facets module.

If indeed you'll want to at least explore this direction, I'll be willing
to help. But my understanding and knowledge of Solr is not rich enough to
try that on my own !

Shai


On Mon, Dec 10, 2012 at 11:53 PM, Otis Gospodnetic <
[email protected]> wrote:

> Thanks Yonik.
>
> Would it also make sense to add Solr's faceting method to Lucene's
> faceting module?
>
> Thanks,
> Otis
>
>
>
>
> On Sun, Dec 9, 2012 at 6:38 PM, Yonik Seeley <[email protected]> wrote:
>
>> On Sun, Dec 9, 2012 at 5:55 PM, Otis Gospodnetic
>> <[email protected]> wrote:
>> > Are there plans to switch Solr to Lucene's faceting?
>>
>> Nope.  There is no one best algorithm - different approaches work best
>> in different circumstances.
>> We've added faceting implementations to Solr over time, and we'll
>> undoubtedly add more in the future.
>>
>> Would it make sense to add Lucene's faceting as an *additional* Solr
>> faceting method?  Maybe?
>> I don't really know though - I haven't done the work to evaluate how
>> well it would fit in with Solr's architecture or not.
>> Patches welcome and all that... ;-)
>>
>> -Yonik
>> http://lucidworks.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

Reply via email to