Define search query parameters in Solr or let clients applications craft them?

2016-06-12 Thread Derek Poh
Hi Would like to get some advice on should the queries parameters be define in Solr or let the clients applications define and pass the queries parameters to Solr? Regards, Derek -- CONFIDENTIALITY NOTICE This e-mail (including any attachments) may contain

Re: Re-create shard with compositeId router and known hash range

2016-06-12 Thread Erick Erickson
What's most disturbing here is that the zookeeper info disappeared for certain shards. This simply should not be happening just because you lost a server or two. The info should still be in Zookeeper for the shards in question. All the replicas will be down of course, but they'll still be there.

Re: export with collapse filter runs into NPE

2016-06-12 Thread Erick Erickson
Susmit: re: the second bug: bq: I ran into another issue - if data in any of the shards is empty, export throws an error- This sounds like something that may be already fixed in SOLR-9187 (just committed yesterday). Would it be possible to check a new build? I ran across this largely by chance

Re: Bypassing ExtractingRequestHandler

2016-06-12 Thread Erick Erickson
Two things: Here's a sample bit of SolrJ code, pulling out the DB stuff should be straightforward: http://searchhub.org/2012/02/14/indexing-with-solrj/ It's a little out of date, but not very much so. CloudSolrServer mentioned in one of the comments has been deprecated in favor of

Re: Question about multiple fq parameters

2016-06-12 Thread Erick Erickson
I took a quick look and basically the key is that these are _ranges_ both at index and query time. Each value in the doc is a range of dates. I _think_ it's something like this. contains = Some date range in the document contains the entire range in the query. within = All date