Re: The Streaming API (Solrj.io) : id must have DocValues?

2016-04-24 Thread sudsport s
Thanks Erik for reply, Since I was storing Id (its stored field) and after enabling docValues my guess is it will be stored in 2 places. also as per my understanding docValues are great when you have values which repeat. I am not sure how beneficial it would be for uniqueId field. I am looking at

Re: The Streaming API (Solrj.io) : id must have DocValues?

2016-04-24 Thread Erick Erickson
In a word, "yes". DocValues aren't particularly expensive, or expensive at all. The idea is that when you sort by a field or facet, the field has to be "uninverted" which builds the entire structure in Java's JVM (this is when the field is _not_ DocValues). DocValues essentially serialize this st

issues doing a spatial query

2016-04-24 Thread GW
I was not getting the results I expected so I started testing with the solr webclient Maybe I don;t understand things. simple test query q=*:*&fq=locations:[49,-92 TO 50,-93] I don't understand why I get a result set for longitude range -92 to -93 but should be zero results as far as I understa

RE: Solr5.5:DocValues/CopyField does not work with Atomic updates

2016-04-24 Thread Karthik Ramachandran
I have opened JIRA https://issues.apache.org/jira/browse/SOLR-9034 I will upload the patch soon. With Thanks & Regards Karthik Ramachandran CommVault Direct: (732) 923-2197  Please don't print this e-mail unless you really need to -Original Message- From: Erick Erickson [mailto:ericker

Re: Return some fields plus count???

2016-04-24 Thread Ahmet Arslan
Hi Fabricio, May be use faceting? facet.field=parent Ahmet On Sunday, April 24, 2016 9:20 PM, Fabrício Quintela wrote: Hi all, Does anybody knows how to retrieve a list of fields plus a calculated field like a subquery? Scenario: docs: [ { id: 123 text:"AAA" parent:"" }, { id: 456

how to retrieve json facet using solrj

2016-04-24 Thread Yangrui Guo
Hello I use json facet api to get facets. The response returned with facets and counts However, when I called the getFacetFields method in SolrJ client, I got null results. How can I get the facet results from solrj? I set my query as query.setParam("json.facet", "{entities : {type: terms,field: c

Return some fields plus count???

2016-04-24 Thread Fabrício Quintela
Hi all, Does anybody knows how to retrieve a list of fields plus a calculated field like a subquery? Scenario: docs: [ { id: 123 text:"AAA" parent:"" }, { id: 456 text:"BBB" parent:"123" }, id: 789 text:"CCC" parent:"123" ] My query fl=id, text, parent, count should return 123,

The Streaming API (Solrj.io) : id must have DocValues?

2016-04-24 Thread sudsport s
I was trying to use Streaming for reading basic tuple stream. I am using sort by id asc , I am getting following exception I am using export search handler as per https://cwiki.apache.org/confluence/display/solr/Exporting+Result+Sets null:java.io.IOException: id must have DocValues to use this fe

Mockito issues with private SolrTestCaseJ4.beforeClass

2016-04-24 Thread Georg Sorst
Hi list, I just ran into some issues with Mockito and SolrTestCaseJ4. It looks like this: * Mockito requires all @BeforeClass methods in the class hierarchy to be "public static void" * SolrTestCaseJ4.beforeClass (which is @BeforeClass) is "private static void" * So I cannot use Mockito as a test