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 roySolr <ro...@gmail.com> on 2011/07/04 13:44:12 UTC

Re: How many fields can SOLR handle?

Nobody? I'm still confused about this

--
View this message in context: http://lucene.472066.n3.nabble.com/How-many-fields-can-SOLR-handle-tp3033910p3137301.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How many fields can SOLR handle?

Posted by roySolr <ro...@gmail.com>.
Thanks Bill,

That's exactly what i mean. But first i do a request to get the right
facetFields from a category.
So a user search for TV, i do request to a db to get tv_size and resolution.
The next step is to
add this to my query like this: facet.field=tv_size&facet.field=resolution.

I thought maybe it's possible to add the FACET fields automatically to my
query(based on category). I understand this isn't possible and i need to do
first a request to get the facet.fields.


--
View this message in context: http://lucene.472066.n3.nabble.com/How-many-fields-can-SOLR-handle-tp3033910p3139921.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How many fields can SOLR handle?

Posted by Bill Bell <bi...@gmail.com>.
This is taxonomy/index design...

One way is to have a series of fields by category:

TV - tv_size, resolution
Computer - cpu, gpu

Solr can have as many fields as you need, and if you do not store them
into the index they are ignored.

So if a user picks "TV", you pass these to Solr:

q=*:*&facet=true&facet.field=tv_size&facet.field=resolution

If a user picks "Computer", you pass these to Solr:

q=*:*&facet=true&facet.field=cpu&facet.field=gpu

The other option is to return ALL of the fields facet'd, but this is not
recommended since
you would certainly have performance issues depending on the number of
fields.





On 7/5/11 1:00 AM, "roySolr" <ro...@gmail.com> wrote:

>Hi,
>
>I know i can add components to my requesthandler. In this situation facets
>are dependent of there category. So if a user choose for the category TV:
>
>Inch:
>32 inch(5)
>34 inch(3)
>40 inch(1)
>
>Resolution:
>Full HD(5)
>HD ready(2)
>
>When a user search for category Computer:
>
>CPU:
>Intel(12)
>AMD(10)
>
>GPU:
>Ati(5)
>Nvidia(2)
>
>So i can't put it in my requesthandler as default. Every search there can
>be
>other facets. Do you understand what i mean?
>
>--
>View this message in context:
>http://lucene.472066.n3.nabble.com/How-many-fields-can-SOLR-handle-tp30339
>10p3139833.html
>Sent from the Solr - User mailing list archive at Nabble.com.



Re: How many fields can SOLR handle?

Posted by roySolr <ro...@gmail.com>.
Hi,

I know i can add components to my requesthandler. In this situation facets
are dependent of there category. So if a user choose for the category TV:

Inch:
32 inch(5)
34 inch(3)
40 inch(1)

Resolution:
Full HD(5)
HD ready(2)

When a user search for category Computer:

CPU:
Intel(12)
AMD(10)

GPU:
Ati(5)
Nvidia(2)

So i can't put it in my requesthandler as default. Every search there can be
other facets. Do you understand what i mean?

--
View this message in context: http://lucene.472066.n3.nabble.com/How-many-fields-can-SOLR-handle-tp3033910p3139833.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How many fields can SOLR handle?

Posted by Marian Steinbach <ma...@gmail.com>.
Hi!

I can't help you with the question about the limit to the number of
fields. But until now I haven't read anywhere that there is a limit.
So I'd assume that there is none.

For your second question:

"Another question: Is it possible to add the FACET fields automatically to my
query? facet.field=*_FACET? Now i do first a request to a DB to get the
FACET titles and add this to the request: facet.field=cpu_FACET,gpu_FACET.
I'm affraid that *_FACET is a overkill solution."

You can add parameters automatically (as defaults) to your requests.
Look into the solrconfig.xml file for requestHandler that handles your
requests. (In the example it's the one starting <requestHandler
name="search" class="solr.SearchHandler" default="true">). There is a
<lst name="defaults"> where you can add as many request parameters as
you like.

Is that what you're talking about?



On Mon, Jul 4, 2011 at 13:44, roySolr <ro...@gmail.com> wrote:
> Nobody? I'm still confused about this
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/How-many-fields-can-SOLR-handle-tp3033910p3137301.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>