lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Solr Development for E-Commerce Appllication
Date Wed, 08 Apr 2015 20:24:26 GMT
See inline for a few answers:

On Wed, Apr 8, 2015 at 10:32 AM, jainam vora <> wrote:
> Hi,
> Brief:
> I am new to Solr and E commerce web apps and Java.
> i want to integrate solr in eCommerce web application (developed using Java
> on Linux).
> I have following queries.
> 1. how to setup SolrCloud on Tomcat. Searched on internet but could not get
> clear steps yet. Also tried some steps but not succeeded yet.

Don't. Solr 5 is moving to using scripts to start/stop Solr and does
NOT require a
container, Tomcat, Jetty or anything else, just use the bin/solr
[start|stop|etc] script.

> 2. what is the best way to update the index regularly in production
>      curl or post.jar or solrj
>      i mean what should be the architecture (scalable)

My vast preference is SolrJ. IMO Post.jar and curl are there to for
getting started
quickly and aren't really suitable for Production. Here's a SolrJ sample:

> 3. if i want to display rs , inches etc prefixes with my facets .. is there
> any ready   made option or i need to format it on web page using javascript.
> Price
> Rs. 1 -1000
> Rs.  1001-10000
> stored data 1050 , 2050 , 3050 , 4050 etc..
> Screen size
> Inch 5
> Inch 4.5
> stored data 5 , 4.5 , 4 etc..

Not quite sure what you're getting at here. But how to display the facets
"prettily" is usually handled in the app layer, but see the "tag" facet

> 4. i have two types of products clothing and electronics... how many
> collections i need to create.. with distributed support for all features
> i.e facets a single query.

Unknown. I'd start with one though, include a "type" field to allow you to
slice and dice them.

You can use an "alias" with that points to more than one collection, but there's
some subtle issues with comparing scores from different collections that'll bite

> 5. how to decide on facets.. as web page wont give details about the same.
> decision needs to be done at web application server.
> if i query red then which facet should be displayed in fact which facets
> should be queried?
> if i query samsung then which facet should be displayed in fact which
> facets should be queried?
> how to architect on this?

This is mostly all app-layer/UI decisions. Facets are a purely query-time
construct so you can do most anything you want with them depending on
how you form your _query_. The fields you facet on must be indexed is all.

> 6. how to develop custom component and integrate it in solr.. any need for
> this?
>  use of this..

Too big a topic right now. Personally I wouldn't waste time on this
until I ran up against a situation where I couldn't make stock Solr
work. But most components are pluggable (i.e. query, update etc).

> 7.Use of Solr Collection Alias and impact of query formation..

Don't know if it's big enough to measure, much less be noticeable.

> 8. What is the best practice to update the data in Solr..  I mean i have
> data from mysql , csv files and hadoop analyzed data..
>     I want to index the same in Solr. what should i use in production.
>     1. Curl Command on command prompt
>     2. Develop an application using SolrJ Client API ..
>     3. bin/post command..

This seems like the second time you've asked this, what's different from
question 2?

> 9. Hadoop integration benefits and limitation for large scale solrCloud
> ..needed or not?

Unless you're _already_ on a Hadoop infrastructure, there's no need
to put one in just for Solr. So not really needed IMO unless you have
massive amounts of data that you already have on HDFS.

> 10. Variable Gap facets are not supported yet. how to develop same?
> facet.range.spec not working.

You've got to tell us _how_ it's not working, what version of Solr you're using,
etc. If you're going from this page:

then all the cautions at the top are pertinent.

"interval faceting" can accomplish much of this I think, see:

> --
> Thanks & Regards,
> Jainam Vora

View raw message