Re: child docs

2019-03-11 Thread Mikhail Khludnev
Hello, John. The choice is guided by the form of search results. You need to ask what you need to paginate, count numFound. You need to index as top level docs what you need to find. On Thu, Mar 7, 2019 at 9:08 PM John Blythe wrote: > hi all! > > curious about how child docs and performance inte

Re: Solrj, Json Facets, (Date) stats facets

2019-03-11 Thread Jason Gerlowski
Hi Andrea, It looks like you've stumbled on a bug in NestableJsonFacet. I clearly wasn't thinking about Date stats when I first wrote it; it looks like it doesn't detect/parse them correctly in the current iteration. I'll try to fix this in a subsequent release. But in the meantime, unfortunate

ClassCastException in SolrJ 7.6+

2019-03-11 Thread Gerald Bonfiglio
I'm seeing the following Exception using JSON Facet API in SolrJ 7.6, 7.7, 7.7.1: Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at org.apache.solr.client.solrj.response.json.NestableJsonFacet.(NestableJsonFacet.java:52) at org.apache.so

Re: solr 7 optimize with Tlog/Pull replicas

2019-03-11 Thread Erick Erickson
do _not_ turn of hard commits, even when bulk indexing. Set the OpenSeacher to false in your config. This is for two reasons: 1> the only time the transaction log is rolled over is when a hard commit happens. If you turn off commits it’ll grow to a very large size. 2> If, for any reason, the node

Apache Solr Reference Guide 7.7 Released

2019-03-11 Thread Jason Gerlowski
The Lucene PMC is pleased to announce that the Solr Reference Guide for 7.7 is now available. This 1,431-page PDF is the definitive guide to using Apache Solr, the search server built on Lucene. The PDF Guide can be downloaded from: https://www.apache.org/dyn/closer.cgi/lucene/solr/ref-guide/apac

Re: ClassCastException in SolrJ 7.6+

2019-03-11 Thread Jason Gerlowski
Hi Gerald, That looks like it might be a bug in SolrJ's JSON faceting support. Do you have a small code snippet that reproduces the problem? That'll help us confirm it's a bug, and get us started on fixing it. Best, Jason On Mon, Mar 11, 2019 at 10:29 AM Gerald Bonfiglio wrote: > > I'm seeing

RE: ClassCastException in SolrJ 7.6+

2019-03-11 Thread Gerald Bonfiglio
public static void main(String[] args) { try { SolrQuery solrQuery = new SolrQuery("*:*"); solrQuery.setRows(0); solrQuery.setParam("json.facet", "{grp_0:{field:evntnm,limit:-1,type:terms,mincount:1,sort:{index:asc}}}"); List solrHosts = new Arr

Re: RegexReplaceProcessorFactory pattern to detect multiple \n

2019-03-11 Thread Zheng Lin Edwin Yeo
Hi, Has anyone else faced the same issue before? So far all the regex patterns that we tried in this thread are not able to resolve the issue. Regards, Edwin On Fri, 8 Mar 2019 at 12:17, Zheng Lin Edwin Yeo wrote: > Hi Paul, > > Sorry, I realized there is an extra ']' in the pattern provided,