Hi All,

I found that which is taking more time. It is *server.query*

 SolrDataDAO dataDao = new SolrDataDAO();
QueryResponse resp = dataDao.queryData(0, 1, subject);
SolrDocumentList data = resp.getResults();
System.out.println("len " + data.size());
System.out.println();

Subject is passed to here:

public QueryResponse queryData(int start, int rows, String query)
throws Exception {
ModifiableSolrParams solrParams = new ModifiableSolrParams();
try {

query = Clean(query);
query = escaping(query);

// String q = "\"";
// query = q + query + q;
// System.out.println("--------\t------------\t----------");

System.out.println("Checking :" + query);
solrParams.set("q", escaping(query));
solrParams.set("start", start);
solrParams.set("rows", rows);

// solrParams.set("facet", facet); // Facets if required

} catch (Exception e) {
e.printStackTrace();
// System.err.println("Error subject :"+query);
}
//return is taking more time...
return server.query(solrParams);
}


Here i am sending the subject to Solr for searching and it is searched
within 200 to 300 ms. But while returning the search result
to QueryResponse, Its getting delay. I dont know why and how to solve this.
Please help me friends. My project is nearly completing stage. Please help
me to complete. Also let me know more details.



On Tue, Apr 8, 2014 at 10:48 PM, Sathya Narayanan <
sathia.blacks...@gmail.com> wrote:

> Hi Anshum,
>
> I am using Solr 4.7. And i follow this 
> tutorial<http://myjeeva.com/solrcloud-cluster-single-collection-deployment.html>to
>  setup a solrcloud. I have only one collection in my solr. Kindly let me,
> if u need more details.
>
>
> On Fri, Apr 4, 2014 at 11:19 PM, Anshum Gupta [via Lucene] <
> ml-node+s472066n4129190...@n3.nabble.com> wrote:
>
>> I am not sure if you setup your SolrCloud right. Can you also provide me
>> with the version of Solr that you're running.
>> Also, if you could tell me about how did you setup your SolrCloud
>> cluster.
>> Are the times consistent? Is this the only collection on the cluster?
>>
>> Also, if I am getting it right, you have 15 ZKs running. Correct me if
>> I'm
>> wrong, but if I'm not, you don't need that kind of a zk setup.
>>
>>
>> On Fri, Apr 4, 2014 at 9:39 AM, Sathya <[hidden 
>> email]<http://user/SendEmail.jtp?type=node&node=4129190&i=0>>
>> wrote:
>>
>> > Hi shawn,
>> >
>> > I have indexed 50 million data in 5 servers. 3 servers have 8gb ram.
>> One
>> > have 24gb and another one have 64gb ram. I was allocate 4 gb ram to
>> solr in
>> > each machine. I am using solrcloud. My total index size is 50gb
>> including 5
>> > servers. Each server have 3 zookeepers. Still I didnt check about OS
>> disk
>> > cache and heap memory. I will check and let u know shawn. If anything,
>> pls
>> > let me know.
>> >
>> > Thank u shawn.
>> >
>> > On Friday, April 4, 2014, Shawn Heisey-4 [via Lucene] <
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4129190&i=1>>
>> wrote:
>> > > On 4/4/2014 1:31 AM, Sathya 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.
>> > >
>> > > How much total RAM do you have on the system, and how much total
>> index
>> > > data is on that system (adding up all the Solr cores)?  You've
>> already
>> > > said that you have allocated 4GB of RAM for Solr.
>> > >
>> > > Later you said you had 50 million documents, and then you showed us a
>> > > URL that looks like SolrCloud.
>> > >
>> > > I suspect that you don't have enough RAM left over to cache your
>> index
>> > > effectively -- the OS Disk Cache is too small.
>> > >
>> > > http://wiki.apache.org/solr/SolrPerformanceProblems
>> > >
>> > > Another possible problem, also discussed on that page, is that your
>> Java
>> > > heap is too small.
>> > >
>> > > Thanks,
>> > > Shawn
>> > >
>> > >
>> > >
>> > > ________________________________
>> > > 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-tp4129067p4129150.html
>> > > To unsubscribe from How to reduce the search speed of solrcloud,
>> click
>> > here.
>> > > NAML
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://lucene.472066.n3.nabble.com/How-to-reduce-the-search-speed-of-solrcloud-tp4129067p4129173.html
>>
>> > Sent from the Solr - User mailing list archive at Nabble.com.
>> >
>>
>>
>>
>> --
>>
>> Anshum Gupta
>> http://www.anshumgupta.net
>>
>>
>> ------------------------------
>>  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-tp4129067p4129190.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-tp4129067p4129940.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to