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

2017-04-14 Thread Dorian Hoxha
Hi friends, Say we're sorting by a non-unique-value, and also have a limit(x). But there are more docs in the end of list(x) that have the same value. Is it possible to return them even if the number of items will be > x ? This will make it possible so I don't have to sort by (non-unique,unique)

Re: Using BasicAuth with SolrJ Code

2017-04-14 Thread Noble Paul
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.apache.org/confluence/display/ > solr/Basic+Authentication+Plugin.

Re: Need help with auto-suggester

2017-04-14 Thread OTH
Great! That's what I was about to resort to do, but thanks for the confirmation! 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. It comes back as a string, so you have to

Re: Need help with auto-suggester

2017-04-14 Thread Walter Underwood
We recently needed multiple values in the payload, so I put a JSON blob in there. It comes back as a string, so you have to decode that JSON separately. Otherwise, it was a pretty clean solution. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Apr

Re: Need help with auto-suggester

2017-04-14 Thread OTH
Thanks, that works! But is it possible to have multiple payloadFields? On Sat, Apr 15, 2017 at 1:23 AM, Marek Tichy wrote: > Utilize the payload field. > > I don't need to search multiple fields; I need to search just one field > but > > get the corresponding values from

Re: Need help with auto-suggester

2017-04-14 Thread Marek Tichy
Utilize the payload field. > I don't need to search multiple fields; I need to search just one field but > get the corresponding values from another field as well. > I.e. if a user is searching for cities, I wouldn't need the countries to > also be searched. However, when the list of cities is

How to do sorting in lucene layer instead of Solr?

2017-04-14 Thread Sundeep T
Hi, I am using /export API, and in Solr 6.3, the sorting in done by Solr in SortingResponserWriter class after the lucene query execution is done. I want to know if it is possible to do the sorting in lucene layer itself and get the results, so that its more efficient if we only want top 10 rows

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

2017-04-14 Thread Shawn Heisey
On 4/13/2017 11:51 AM, 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. > If I run a query that returns only 500K documents still keeping 100K docs > per page, I don't see long GC

extract multi-features for one solr feature extractor in solr learning to rank

2017-04-14 Thread Jianxiong Dong
Hi, I found that solr learning-to-rank (LTR) supports only ONE feature for a given feature extractor. See interface: https://github.com/apache/lucene-solr/blob/master/solr/contrib/ltr/src/java/org/apache/solr/ltr/feature/Feature.java Line (281, 282) (in FeatureScorer) @Override public

CloudDescriptor.getNumShards() sometimes returns null

2017-04-14 Thread Markus Jelsma
Hi - I've got this 2 shard/2 replica cluster. In handler i need the number of shards of the cluster. cloudDescriptor = core.getCoreDescriptor().getCloudDescriptor(); return cloudDescriptor.getNumShards(); It is, however, depending on which node is executing this, sometimes null!

Re: streaming expressions parallel merge

2017-04-14 Thread Joel Bernstein
Yes, you can wrap the merge in a parallel expression. You'll need to specify the partitionKeys, which will be used to route documents to worker nodes. For operations like rollup and joins the partition keys ensure that the tuples with the same partition keys end up on the same worker. With the

Re: Need help with auto-suggester

2017-04-14 Thread OTH
I don't need to search multiple fields; I need to search just one field but get the corresponding values from another field as well. I.e. if a user is searching for cities, I wouldn't need the countries to also be searched. However, when the list of cities is displayed, I need their corresponding

Re: How to get field names of dynamic field

2017-04-14 Thread Ahmet Arslan
Hi Midas, LukeRequestHandler shows that information. Ahmet On Friday, April 14, 2017, 1:16:09 PM GMT+3, Midas A wrote: Actually , i am looking for APi On Fri, Apr 14, 2017 at 3:36 PM, Andrea Gazzarini wrote: > I can see those names in the "Schema 

Shards, delete duplicates ?

2017-04-14 Thread Bruno Mannina
Dear Solr users, I have two collections C1 and C2 For C1 and C2 the unique key is ID. ID in C1 are patent numbers normalized i.e US + 12 digits + A1 ID in C2 are patent numbers as I receive them. US + 13 digits + A1 (a leading 0 is added) My collection C2 has a field name ID12 which is

Re: How to get field names of dynamic field

2017-04-14 Thread Midas A
Actually , i am looking for APi On Fri, Apr 14, 2017 at 3:36 PM, Andrea Gazzarini wrote: > I can see those names in the "Schema browser" of the admin UI, so I guess > using the (lucene?) API it shouldn't be hard to get this info. > > I don' know if the schema api (or some

Re: How to get field names of dynamic field

2017-04-14 Thread Andrea Gazzarini
I can see those names in the "Schema browser" of the admin UI, so I guess using the (lucene?) API it shouldn't be hard to get this info. I don' know if the schema api (or some other service) offer this service Andrea On 14 Apr 2017 10:03, "Midas A" wrote: > Hi, > > >

Upgrading cluster from 4 to 5. Slow replication detected.

2017-04-14 Thread Himanshu Sachdeva
Hi, We're starting to upgrade our solr cluster to version 5.5. So we removed one slave node from the cluster and installed solr 5.5.4 on it and started solr. So it started copying the index from the master. However, we noticed a drop in the replication speed compared to the other nodes which were

How to get field names of dynamic field

2017-04-14 Thread Midas A
Hi, Can i get all the field created for dynamic field in solr . Like my dynamic field is by_* and i have index by_color by_size .. etc I want to retrieve all these field name . Is there any way to do this based on some query