How to start an optimize in SolrJ without waiting for it to complete?

2015-05-01 Thread Shawn Heisey
This is my solrj code: UpdateRequest req = new UpdateRequest("/" + _name + "/update"); req.setAction(UpdateRequest.ACTION.OPTIMIZE, false, false); UpdateResponse ur = req.process(_client); The _name variable contains the name of the core, and _client is a 5.0 SolrClient, specifically HttpSo

Re: How to start an optimize in SolrJ without waiting for it to complete?

2015-05-01 Thread Shawn Heisey
On 5/1/2015 7:23 AM, Shawn Heisey wrote: > This is my solrj code: > > UpdateRequest req = new UpdateRequest("/" + _name + "/update"); > req.setAction(UpdateRequest.ACTION.OPTIMIZE, false, false); > UpdateResponse ur = req.process(_client); Followup. I must not have actually been running th

RE: How to start an optimize in SolrJ without waiting for it to complete?

2015-05-01 Thread Ryan, Michael F. (LNG-DAY)
If I recall correctly, waitSearcher only affects the opening of the new Searcher, and not the part of the optimize where the segments are being merged together (the long part). I took a quick look at DirectUpdateHandler2, and I don't see anything to allow the request to return immediately. I thi

Empty buckets when faceting over an EnumField or TrieIntField (5.1.0)

2015-05-01 Thread Alfonso Muñoz-Pomer Fuentes
Hi, I’m having problems when faceting over an EnumField such as this: required="true" /> And in enumsConfig.xml: plants metazoa fungi A query such as the one below returns all buckets empty: curl http://localhost:8983/solr/enumTest/query -d ' { query: "*

Re: Empty buckets when faceting over an EnumField or TrieIntField (5.1.0)

2015-05-01 Thread Alfonso Muñoz-Pomer Fuentes
I forgot to add my "kingdomEnum" definition in schema.xml: enumsConfig="enumsConfig.xml" enumName="kingdom"/> On 01/05/2015 16:38, Alfonso Muñoz-Pomer Fuentes wrote: Hi, I’m having problems when faceting over an EnumField such as this: And in enumsConfig.xml: plants

Re: Empty buckets when faceting over an EnumField or TrieIntField (5.1.0)

2015-05-01 Thread Alfonso Muñoz-Pomer Fuentes
This is unsupported at the moment and the devs ara aware of the issue. https://issues.apache.org/jira/browse/SOLR-7497 On 01/05/2015 16:53, Alfonso Muñoz-Pomer Fuentes wrote: I forgot to add my "kingdomEnum" definition in schema.xml: On 01/05/2015 16:38, Alfonso Muñoz-Pomer Fuentes wrote: Hi