You said your request is 6 seconds when going through the SolrJ
client. But it is 1 second (1000 ms) when going directly to Solr
bypassing the SolrJ. So, the other 5 seconds must be added outside of
Solr. Concentrate on that.

Regarding your schema, you used example schema that has a lot of stuff
you do not need. Here is what a very small schema looks like:
https://github.com/arafalov/solr-indexing-book/blob/master/published/collection1/conf/schema.xml
, so you can compare. That's an example from my book. You may find the
book a fast way to get from your current state to early intermediate
(no cloud examples, though).

Contact me directly if you need a discount.

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Fri, Apr 4, 2014 at 4:11 PM, Sathya <sathia.blacks...@gmail.com> wrote:
> Hi,
>
> Sorry, i cant get u alex. Can you please explain me(if you can).  Because
> now only i entered into solr.
>
>
> On Fri, Apr 4, 2014 at 2:20 PM, Alexandre Rafalovitch [via Lucene] <
> ml-node+s472066n4129077...@n3.nabble.com> wrote:
>
>> Well, if the direct browser query is 1000ms and your client query is
>> 6seconds, then it is not Solr itself you need to worry about first.
>> Something must be wrong at the client. Trying timing that bit. Maybe
>> it is writing from the client to your ultimate consumer that's the
>> problem.
>>
>> Regards,
>>    Alex.
>> P.s. You should probably trim your schema to get rid of all the
>> example fields. Keep _version_ and _root_ but delete all the rest you
>> don't actually use. Same with dynamic fields and all fieldType
>> definitions you do not actually use. You can always reintroduce them
>> later from the example schemas if something is missing.
>>
>> Personal website: http://www.outerthoughts.com/
>> Current project: http://www.solr-start.com/ - Accelerating your Solr
>> proficiency
>>
>>
>> On Fri, Apr 4, 2014 at 3:41 PM, Sathya <[hidden 
>> email]<http://user/SendEmail.jtp?type=node&node=4129077&i=0>>
>> wrote:
>>
>> > Hi,
>> >
>> > I have attached my schema.xml file too.
>> >
>> > And you are right. I have 50 million documents. When i use solr
>> > browser to search a document, it will return within 1000 to 2000 ms.
>> >
>> > My query looks like this:
>> >
>> http://10.10.1.14:5050/solr/set_recent_shard1_replica5/select?q=subject&indent=true
>> >
>> > On 4/4/14, Alexandre Rafalovitch [via Lucene]
>> > <[hidden email] <http://user/SendEmail.jtp?type=node&node=4129077&i=1>>
>> wrote:
>> >>
>> >>
>> >> What does your Solr query looks like (check the Solr backend log if
>> >> you don't know)?
>> >>
>> >> And how many document is that? 50 million? Does not sound like much
>> >> for 3 fields. And what's the definitions (schema.xml rather than
>> >> solr.xml).
>> >>
>> >> And what happens if you issue the query directly to Solr rather than
>> >> through the client? Is the speed much different?
>> >>
>> >> Regards,
>> >>    Alex.
>> >>
>> >> Personal website: http://www.outerthoughts.com/
>> >> Current project: http://www.solr-start.com/ - Accelerating your Solr
>> >> proficiency
>> >>
>> >>
>> >> On Fri, Apr 4, 2014 at 3:12 PM, Sathya <[hidden 
>> >> email]<http://user/SendEmail.jtp?type=node&node=4129077&i=2>>
>> wrote:
>> >>> Hi Alex,
>> >>>
>> >>> <str name="id">33026985</str> <str name="subject">Component Audio\:A
>> >>> Shopping List</str> <str name="download_date">2012-01-11
>> >>> 09:02:42.96</str>
>> >>>
>> >>> This is what i am  indexed in solr. I have only 3 fields in index. And
>> >>> i am just indexing id, subject and date of the news articles. Nearly 5
>> >>> crore documents. Also i have attached my solrconfig and solr.xml file.
>> >>> If u need more information, pls let me know.
>> >>>
>> >>> On Fri, Apr 4, 2014 at 1:15 PM, Alexandre Rafalovitch [via Lucene]
>> >>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=4129077&i=3>>
>> wrote:
>> >>>>
>> >>>> Show a sample query string that does that (takes 6 seconds to
>> return).
>> >>>> Including all defaults you may have put in solrconfig.xml (if any).
>> >>>> That might give us a hint which features you are using and what
>> >>>> possible direction you could go in next. For the bonus points, enable
>> >>>> debug flag and rows=1 parameter to see how big your documents
>> >>>> themselves are.
>> >>>>
>> >>>> You may have issues with a particular non-cloud-friendly feature,
>> with
>> >>>> caches, with not reusing parts of your queries as 'fq', returning too
>> >>>> many fields or a bunch of other things.
>> >>>>
>> >>>> Regards,
>> >>>>    Alex.
>> >>>> Personal website: http://www.outerthoughts.com/
>> >>>> Current project: http://www.solr-start.com/ - Accelerating your Solr
>> >>>> proficiency
>> >>>>
>> >>>>
>> >>>> On Fri, Apr 4, 2014 at 2:31 PM, Sathya <[hidden email]> wrote:
>> >>>>
>> >>>> > Hi All,
>> >>>> >
>> >>>> > Hi All, I am new to Solr. And i dont know how to increase the
>> search
>> >>>> > speed
>> >>>> > of solrcloud. I have indexed nearly 4 GB of data. When i am
>> searching
>> >>>> > a
>> >>>> > document using java with solrj, solr takes more 6 seconds to return
>> a
>> >>>> > query
>> >>>> > result. Any one please help me to reduce the search query time to
>> less
>> >>>> > than
>> >>>> > 500 ms. i have allocate the 4 GB ram for solr. Please let me know
>> for
>> >>>> > further details about solrcloud config.
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > --
>> >>>> > View this message in context:
>> >>>> >
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067.html
>> >>>> > Sent from the Solr - User mailing list archive at Nabble.com.
>> >>>>
>> >>>>
>> >>>> ________________________________
>> >>>> If you reply to this email, your message will be added to the
>> discussion
>> >>>> below:
>> >>>>
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129068.html
>> >>>> To unsubscribe from How to reduce the search speed of solrcloud,
>> click
>> >>>> here.
>> >>>> NAML
>> >>>
>> >>>
>> >>> solrconfig.xml (101K)
>> >>> <
>> http://lucene.472066.n3.nabble.com/attachment/4129073/0/solrconfig.xml>
>> >>> solr.xml (1K)
>> >>> <http://lucene.472066.n3.nabble.com/attachment/4129073/1/solr.xml>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>>
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129073.html
>> >>> Sent from the Solr - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >>
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129074.html
>> >>
>> >> To unsubscribe from How to reduce the search speed of solrcloud, visit
>> >>
>>
>> >
>> > schema.xml (81K) <
>> http://lucene.472066.n3.nabble.com/attachment/4129075/0/schema.xml>
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129075.html
>>
>> > Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129077.html
>>  To unsubscribe from How to reduce the search speed of solrcloud, click
>> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4129067&code=c2F0aGlhLmJsYWNrc3RhckBnbWFpbC5jb218NDEyOTA2N3wtMjEyNDcwMTI5OA==>
>> .
>> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129085.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to