Re: Using BasicAuth with SolrJ Code

2017-04-15 Thread Zheng Lin Edwin Yeo
Ok, thank you. Regards, Edwin On 15 April 2017 at 08:05, Noble Paul wrote: > I'll test with this and let you know > > On Apr 13, 2017 23:06, "Zheng Lin Edwin Yeo" wrote: > > > The security.json which I'm using is the default one that is available > from > > the Solr Documentation https://cwiki

Re: Long GC pauses while reading Solr docs using Cursor approach

2017-04-15 Thread Toke Eskildsen
Chetas Joshi wrote: > Thanks for the insights into the memory requirements. Looks like cursor > approach is going to require a lot of memory for millions of documents. Sorry, that is a premature conclusion from your observations. > If I run a query that returns only 500K documents still keeping

Re: Need help with auto-suggester

2017-04-15 Thread OTH
I see, thanks. So I"m just using a string field to store the JSON. On Sat, Apr 15, 2017 at 11:15 PM, Walter Underwood wrote: > Sorry, that was formatted. The quotes are actually escaped, like this: > > {"term":"microsoft office","weight":14,"payload":"{\"count\": > 1534255, \"id\": \"microsoft

Re: Need help with auto-suggester

2017-04-15 Thread Walter Underwood
Sorry, that was formatted. The quotes are actually escaped, like this: {"term":"microsoft office","weight":14,"payload":"{\"count\": 1534255, \"id\": \"microsoft office\"}”} wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Apr 15, 2017, at 10:40 AM,

Re: Need help with auto-suggester

2017-04-15 Thread Walter Underwood
JSON does not have a binary data type, so true BLOBs are not possible in JSON. Sorry, I wasn’t clear. The payload I use is JSON in a string. It looks like this: suggest: { skill_names_infix: { m: { numFound: 10, suggestions: [ { term: "microsoft office", weight: 14, payload: "{"count": 1534255,

Re: Need help with auto-suggester

2017-04-15 Thread OTH
Hi - just wondering, what would be the difference between using a blob / binary field to store the JSON rather than simply using a string field? Thanks On Sat, Apr 15, 2017 at 2:50 AM, Walter Underwood wrote: > We recently needed multiple values in the payload, so I put a JSON blob in > there. I

Re: Return all docs with same last-value when sorting by non-unique-value

2017-04-15 Thread Alexandre Rafalovitch
I don't think Solr supports this. Maybe you can do that in a custom component by cutting off in Solr at max-limit and then cutting again in the search component afterwards down to limit. Or just get more documents and deal with this on the middle-ware side. Regards, Alex. http://www.solr-s

Sharding strategy for optimal NRT performance

2017-04-15 Thread Chris Troullis
Hi! I am looking for some advice on an sharding strategy that will produce optimal performance in the NRT search case for my setup. I have come up with a strategy that I think will work based on my experience, testing, and reading of similar questions on the mailing list, but I was hoping to run m

Re: Return all docs with same last-value when sorting by non-unique-value

2017-04-15 Thread Dorian Hoxha
Say order_by=likes descending, limit(4). And the likes are::: 10,9,8,7,7,7,4,2. Then we'd get back all 10-7 documents, so 6 docs. The same thing if they sort in the middle. It can also have a max-limit, so we don't get too many docs returned. Makes sense ? On Sat, Apr 15, 2017 at 8:24 AM, Alexa