java - Obtaining IndexReader using CloudSolrServer SolrJ 4.4 -


i want use fastvectorhiglighter.getbestfragments(...) programatically. in order so, need indexreader object specified request.

problem cannot obtain request itself. solrquery object provides queryrespose.

tried create own solrcore object

corecontainer container = new corecontainer(zk_url); coredescriptor cd = new coredescriptor(container, "corename_shard1_replica1",      coreinstancedir); solrcore core = new solrcore("corename_shard1_replica1",cd ); localsolrqueryrequest localrequest = new localsolrqueryrequest(core,somesolrquery); indexreader reader = localrequest.getsearcher().getindexreader(); 

although above(getreader()) results in null. use hints on: how indexreader solrcloud.

thank in advance


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -