lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bell <billnb...@gmail.com>
Subject Re: facet.prefix or separation?
Date Sat, 01 Feb 2014 04:33:09 GMT
Just to be perfectly clear, it is not a binary field.

conditions = "A west side story"
conditions = "The edge of reason"

I look for those strings beginning with A and set that in conditions_A:

conditions_A = "A west side story"

OK?


On Fri, Jan 31, 2014 at 9:29 PM, Alexandre Rafalovitch
<arafalov@gmail.com>wrote:

> I am quite sure that the binary flag will be faster as you will just
> get a gigantic vector pre-loaded into memory. The problem starts if
> you are going to have lots of those prefixes. Then, the memory
> requirements may become an issue. Then, the facet becomes more
> flexible as it uses the same list for any arbitrary prefix.
>
> There are my thoughts (as requested). I haven't tested this in production.
>
> Regards,
>    Alex.
> Personal website: http://www.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all
> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)
>
>
> On Sat, Feb 1, 2014 at 11:20 AM, William Bell <billnbell@gmail.com> wrote:
> > What should be better for performance to get those facets that begins
> with
> > A?
> >
> > 1.
> > facet=true&facet.field=conditions&facet.prefix=A
> >
> > 2.
> > When indexing create a new field conditions_A, and use it:
> > facet=true&facet.field=conditions_A
> >
> > Thoughts?
> >
> >
> >
> > --
> > Bill Bell
> > billnbell@gmail.com
> > cell 720-256-8076
>



-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message