Re: Sorting Problem with custom ValueSourceParser

2016-10-04 Thread Rohit Agarwal
I tried returning false in equals method but still it has no effect. Btw is there any documentation where i can look at what the functions are used for. I can't find any proper documentation related to it. It is very difficult to guess the usage of the functions. I don't think it will be a good

Re: Sorting Problem with custom ValueSourceParser

2016-10-04 Thread Rohit Agarwal
Hi Hoss, Thanks for the response. Will make the necessary changes and get back to you. Btw this is just a testing code. The logic is yet to be implemented. What according to you could be the best way to return hashcode? Regards, Rohit On Oct 5, 2016 5:27 AM, "Chris Hostetter"

Re: running solr 6.x in Eclipse for debugging

2016-10-04 Thread Erick Erickson
Warning: I use IntelliJ, but I think Eclipse works similarly. I'm a bit confused. Are you trying to _start_ Solr from within Eclipse? Or starting it from a command prompt? I do the latter and then attach a remote debugging session from within the IDE, which is what I think that link suggests

Re: Multiple solr instances on one server

2016-10-04 Thread Erick Erickson
This is an impossibly vague question to answer. You haven't provided _anything_ useful to help answer. How much physical memory is on the machine? How man processors? What kind of searching? Faceting? Indexing rate? How many documents? What kind of documents? What evidence do you have that you

Re: Enhancement on a getFloats method of FileFloatSource.java ?

2016-10-04 Thread Jihwan Kim
Got it! Thanks a lot! On Oct 4, 2016 9:29 PM, "Yonik Seeley" wrote: > On Tue, Oct 4, 2016 at 11:23 PM, Jihwan Kim wrote: > > Hi Yonik, > > I thought about your comment and I might understand what you were saying. > > The for loop in the getFloats method

Re: Multiple solr instances on one server

2016-10-04 Thread shalu
We are also require multiple solr instances to divide the heap space between cores. What is the best way to do it? -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-solr-instances-on-one-server-tp4248411p4299645.html Sent from the Solr - User mailing list archive at

Re: Enhancement on a getFloats method of FileFloatSource.java ?

2016-10-04 Thread Yonik Seeley
On Tue, Oct 4, 2016 at 11:23 PM, Jihwan Kim wrote: > Hi Yonik, > I thought about your comment and I might understand what you were saying. > The for loop in the getFloats method assign a different index of the array > whenever a new segment is created/updated. You are saying

Re: Enhancement on a getFloats method of FileFloatSource.java ?

2016-10-04 Thread Jihwan Kim
Hi Yonik, I thought about your comment and I might understand what you were saying. The for loop in the getFloats method assign a different index of the array whenever a new segment is created/updated. You are saying that is why we cannot cache the float array as I suggested. Am I understood

Re: Enhancement on a getFloats method of FileFloatSource.java ?

2016-10-04 Thread Jihwan Kim
"The array is indexed by internal lucene docid," --> If I understood correctly, it is done inside the for loop that I briefly showed. In the following code I used, the 'vals' points to an array object and the latestCache puts the reference of the same array object. Then, the index decision and

Re: Enhancement on a getFloats method of FileFloatSource.java ?

2016-10-04 Thread Yonik Seeley
On Tue, Oct 4, 2016 at 10:09 PM, Jihwan Kim wrote: > I would like to ask the Solr organization an enhancement request. > > The FileFloatSource creates a cache value from an external file when a Core > is reloaded and/or a new searcher is opened. Nevertheless, the external >

Enhancement on a getFloats method of FileFloatSource.java ?

2016-10-04 Thread Jihwan Kim
I would like to ask the Solr organization an enhancement request. The FileFloatSource creates a cache value from an external file when a Core is reloaded and/or a new searcher is opened. Nevertheless, the external files can be changed less frequently. With a larger document and larger external

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
Sorry for that, Yonik Seeley. I have closed it and link it to https://issues.apache.org/jira/browse/SOLR-9603 -- View this message in context:

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Yonik Seeley
On Tue, Oct 4, 2016 at 9:27 PM, Jeffery Yuan wrote: > https://issues.apache.org/jira/browse/SOLR-9602 It looks like you beat me by seconds ;-) https://issues.apache.org/jira/browse/SOLR-9603 -Yonik

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
Thanks Yonik Seeley. I created Support Bucket Filters in Facet Functions to track this issue. -- View this message in context:

Re: (ANNOUNCEMENT) Solr Examples reading group

2016-10-04 Thread Walter Underwood
I’m trying to bring up 6.2.1 after experience with 1.2 through 5.5, and it is a mess. I’ve done solid good practice (Zookeeper ensemble, chroot, data on EBS volume), but I’m stuck with a completely non-instructive stack trace. We run a separate data directory and SOLR_HOME, which is poorly

disable updates during startup

2016-10-04 Thread Rallavagu
Solr Cloud 5.4.1 with embedded Jetty - jdk 8 Is there a way to disable incoming updates (from leader) during startup until "firstSearcher" queries finished? I am noticing that firstSearcher queries keep on running at the time of startup and node shows up as "Recovering". Thanks

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Yonik Seeley
On Tue, Oct 4, 2016 at 9:07 PM, Jeffery Yuan wrote: > Yonik, Thanks very much for your reply. > > I think you are talking about min/max functions that are used to create > stats facet. > http://yonik.com/solr-facet-functions/ > > Here we would like to do filter in the (sum)

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
Yonik, Thanks very much for your reply. I think you are talking about min/max functions that are used to create stats facet. http://yonik.com/solr-facet-functions/ Here we would like to do filter in the (sum) function facet. - so it would only return accountIds whose sum(timeSpent) is between

(ANNOUNCEMENT) Solr Examples reading group

2016-10-04 Thread Alexandre Rafalovitch
Hello, Three weeks ago I asked this list whether there was an interest in running a virtual examples reading group, with "all questions welcome". The response was sufficient to start planning the first study group. The current projected date is start of November. You can register for it at:

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Yonik Seeley
On Tue, Oct 4, 2016 at 8:54 PM, Jeffery Yuan wrote: > We will use Solr facet function - it's very powerful. > The only missing part is that it doesn't minValue and maxValue filter. There are min and max functions, but they only work for numerics currently. -Yonik

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
We will use Solr facet function - it's very powerful. The only missing part is that it doesn't minValue and maxValue filter. http://yonik.com/solr-facet-functions/ http://localhost:8983/solr/events/select?q=*:*={ categories:{ type : terms, field : accountId, numBuckets: true,

Re: running solr 6.x in Eclipse for debugging

2016-10-04 Thread John Bickerstaff
Thanks! This works... I'm getting a (possibly unrelated?) warning and can't hit the Admin page (I get a 503). I DO see eclipse "hook into" the debug session which is excellent. The warning resolves to this: java.io.FileNotFoundException:

Re: running solr 6.x in Eclipse for debugging

2016-10-04 Thread John Bickerstaff
Thanks much! I'll give it a try... On Tue, Oct 4, 2016 at 4:45 PM, Jihwan Kim wrote: > I read your first reference and run the following command on the > Solr_Installed Dir. I am using v. 6.2.0 and 4.10.4. both works. > > bin/solr start -f -a "-Xdebug >

Re: Sorting Problem with custom ValueSourceParser

2016-10-04 Thread Chris Hostetter
: Eg: if i make a query to sort by func(cost) desc : It works. : Now if i change cost with some another field eg func(rating) desc : It sorts the result by cost only. : : Now if i restart the solr server and call sort by func(rating) it works but : now it will stick with rating : : Any idea why

Re: running solr 6.x in Eclipse for debugging

2016-10-04 Thread Jihwan Kim
I read your first reference and run the following command on the Solr_Installed Dir. I am using v. 6.2.0 and 4.10.4. both works. bin/solr start -f -a "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7666" On Tue, Oct 4, 2016 at 5:26 PM, John Bickerstaff

running solr 6.x in Eclipse for debugging

2016-10-04 Thread John Bickerstaff
All, I've found some hints, but can't get Solr running in debug mode in eclipse with the instructions Here: http://opensourceconnections.com/blog/2013/04/13/how-to-debug-solr-with-eclipse/ or Here: http://wiki.apache.org/solr/HowToConfigureEclipse When I run this command from the wiki : java

Re: Challenges with new Solrcloud Backup/Restore functionality

2016-10-04 Thread Stephen Lewis
Hi All, I have been experiencing error#1 too with the current branch_6_2 build. I started noticing after I applied my patch to that branch (on issue #2), but it appears to occur without the patch as well. I haven't seen this issue with solr 6.1.0

Re: How to use StreamingApi MultiFieldComparator?

2016-10-04 Thread Markko Legonkov
the problem is in MultipleFieldEqualitor @Override public boolean isDerivedFrom(StreamComparator base){ if(null == base){ return false; } if(base instanceof StreamComparator){ MultipleFieldComparator baseComps = (MultipleFieldComparator)base; if(baseComps.getComps().length >= eqs.length){

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Mikhail Khludnev
Edwin, It seems like you try to pull document hierarchy back. That's usually done by searching parents and fl=[child ..],,. On Tue, Oct 4, 2016 at 5:22 PM, Zheng Lin Edwin Yeo wrote: > Some of the sample documents are like the following: > > Author is the Header, while

Sorting Problem with custom ValueSourceParser

2016-10-04 Thread Rohit Agarwal
I am writing a custom ValueSourceParser. Everything is working fine except when i use valuesourceparser for sorting it stops working for calls with different data. Eg: if i make a query to sort by func(cost) desc It works. Now if i change cost with some another field eg func(rating) desc It sorts

Re: How to implement a custom boost function

2016-10-04 Thread Lucas Cotta
It seems I could also use constant score... but this was introduced on version 5.1... anyway I could do something similar in 4.7.1? Thanks 2016-10-04 11:24 GMT-03:00 Lucas Cotta : > Sorry Bill, I didn't understand your suggestion. Could I implement a sort > function in this

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Alexandre Rafalovitch
I _think_ what is happening is that you are going in both parent and child directions in your filters. Try making your query ('q') define your original domain (q=type_s:author) and then 'books' goes inside the parent "author" scope and that's where you change your domain. Regards, Alex.

Re: Unable to set up Export Handler in Solr

2016-10-04 Thread Nkechi Achara
Hey Alex, It's docValued. Thanks for your help anyway :) On 4 October 2016 at 19:05, Alexandre Rafalovitch wrote: > That's nice, I thought it was released later. > > Is your id field docvalued? All the exported fields have to be. No > other ideas from me. > > Regards, >

Re: Unable to set up Export Handler in Solr

2016-10-04 Thread Alexandre Rafalovitch
That's nice, I thought it was released later. Is your id field docvalued? All the exported fields have to be. No other ideas from me. Regards, Alex. Newsletter and resources for Solr beginners and intermediates: http://www.solr-start.com/ On 4 October 2016 at 23:40, Nkechi Achara

Re: Unable to set up Export Handler in Solr

2016-10-04 Thread Nkechi Achara
Hey Alex, According to the release notes it was in 4.10.3: http://lucene.apache.org/solr/4_10_3/changes/Changes.html 1. SOLR-5244 : Exporting Full Sorted Result Sets (Erik Hatcher, Joel Bernstein) On 4 October 2016 at 18:29, Alexandre

Re: Writing Solr Custom Components

2016-10-04 Thread Leonardo Foderaro
Hi John, if you're also interested in an experimental approach for a quick custom component prototyping, please take a look at my project Alba: https://github.com/leonardofoderaro/alba It allows you to create a new component just by adding a few annotations to a POJO. Please keep in mind it's

Re: Unable to set up Export Handler in Solr

2016-10-04 Thread Alexandre Rafalovitch
I don't think that functionality is available until Solr 6. Check the release notes. Regards, Alex. On 4 Oct 2016 10:53 PM, "Nkechi Achara" wrote: > Hey Alex, > > I am using a very old version 4.10.3 on CDH 5.5.2. > > Thanks! > > On 4 October 2016 at 17:52,

Writing Solr Custom Components

2016-10-04 Thread John Bickerstaff
All, I'm looking for information on writing custom Solr components. A quick search showed nothing really recent and before I dig deeper, I thought I'd ask the community for anything you are aware of. Thanks

Re: Unable to set up Export Handler in Solr

2016-10-04 Thread Nkechi Achara
Hey Alex, I am using a very old version 4.10.3 on CDH 5.5.2. Thanks! On 4 October 2016 at 17:52, Alexandre Rafalovitch wrote: > What version of Solr are you running? > > I think there is another component that needs to be defined. Solr 6.2 > examples have it. > > Regards,

Re: Unable to set up Export Handler in Solr

2016-10-04 Thread Alexandre Rafalovitch
What version of Solr are you running? I think there is another component that needs to be defined. Solr 6.2 examples have it. Regards, Alex On 4 Oct 2016 10:29 PM, "Nkechi Achara" wrote: > I have followed the instructions here for setting up an Export Handler for >

Unable to set up Export Handler in Solr

2016-10-04 Thread Nkechi Achara
I have followed the instructions here for setting up an Export Handler for Solr and I am having issues when trying to retrieve the data: Java.io.IOException: org.apache.solr.search.SyntaxError: xport RankQuery is required for xsort: rq={!xport} at

Re: SOLR Sizing

2016-10-04 Thread Walter Underwood
No, we don’t have OCR’ed text. But if you do, it breaks the assumption that vocabulary size is the square root of the text size. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Oct 4, 2016, at 7:14 AM, Rick Leir wrote: > >

Re: How to implement a custom boost function

2016-10-04 Thread Lucas Cotta
Sorry Bill, I didn't understand your suggestion. Could I implement a sort function in this case? Thanks 2016-10-04 11:12 GMT-03:00 : > You can pahinaye and sort as long as it is the same each time. Sort can be > a function value too. I.e. Sort=geodist() asc... > > bq can

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Zheng Lin Edwin Yeo
Some of the sample documents are like the following: Author is the Header, while Books are the Child Author: Edwin Books: Book 1 Book 2 Book 3 Author: John Books: Book 4 Book 5 For this query: http://localhost:8983/solr/collection1/select?q=*:* ={ author:{

Re: SOLR Sizing

2016-10-04 Thread Rick Leir
OCR’ed text can have large amounts of garbage such as '';,-d'." particularly when there is poor image quality or embedded graphics. Is that what is causing your huge vocabularies? I filtered the text, removing any word with fewer than 3 alphanumerics or more than 2 non-alphas. On 2016-10-03

Re: How to implement a custom boost function

2016-10-04 Thread billnbell
You can pahinaye and sort as long as it is the same each time. Sort can be a function value too. I.e. Sort=geodist() asc... bq can also boost based on a field name Bill Bell Sent from mobile > On Oct 3, 2016, at 11:28 PM, Lucas Cotta wrote: > > Hi Walter,

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Yonik Seeley
Perhaps show a couple sample documents, and then what data you're looking for in a response? This stuff can be tough to pin down without concrete examples. -Yonik On Tue, Oct 4, 2016 at 5:22 AM, Zheng Lin Edwin Yeo wrote: > I have tried to use this nested query, but I

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Zheng Lin Edwin Yeo
I have tried to use this nested query, but I still can't get results for the list of books. http://localhost:8983/solr/collection1/select?q=*:* ={ items:{ type:terms, field:author_s, domain: { blockParent : "type_s:author" }, facet:{ by1:{ type:terms, field:book_s, domain: {

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Alexandre Rafalovitch
You need to switch the domain to the child records. It is somewhere in the guide or Yonik's blog linked. Regards, Alex On 4 Oct 2016 1:55 PM, "Zheng Lin Edwin Yeo" wrote: > Hi, > > Is it possible to do nested faceting on both records in parent and child in > a single

Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Zheng Lin Edwin Yeo
Hi, Is it possible to do nested faceting on both records in parent and child in a single query? For example, I want to facet both author_s and book_s. Author is indexed as a parent, whereas Book is indexed as a child. I tried the following JSON Facet query, which is to do a facet of all the