Re: Same query, inconsistent result in SolrCloud

2015-06-24 Thread Jerome Yang
Dear Erick, Thank you, I fond it's the problem of my text segmentation setting. Anyway, thanks. Regards, Jerome 2015-06-21 0:43 GMT+08:00 Erick Erickson erickerick...@gmail.com: Just that this _shouldn't_ be going on at all. Either 1 you've done something when setting up this collection

Re: Implicit Router Configurations

2015-06-24 Thread Arnon Yogev
Thank you Erick, What is the recommended way to manually change clusterstate.json? Is there a java code \ script way of editing a file in ZK? Best, Arnon From: Erick Erickson erickerick...@gmail.com To: solr-user@lucene.apache.org Date: 23/06/2015 09:09 PM Subject:Re: Implicit

Attaching payload on spatial RPT?

2015-06-24 Thread Markus Jelsma
Hi we have a multiValued spatial RPT field. Each document has 0 or more coordinate pairs attached to it. I derived the coordinate pairs from the spatial facetting heatmap and i have the count that comes with it, to do so i had to translate the heatmap grid to a list of coordinate pairs with the

Re: Implicit Router Configurations

2015-06-24 Thread Upayavira
You can use the server/scripts/cloud-scripts/zkcli.sh script (or the cmd one) in server/scripts/cloud-scripts. Note, in older versions this is in example/scripts/cloud-scripts. I just used this command to get the file from zookeeper: server/scripts/cloud-scripts/zkcli.sh -z localhost:9983 -cmd

RE: Solr Unexpected Query Parser Exception

2015-06-24 Thread Vishnu Mishra
I think there is no issue with query escaping. I am doing shard query to my main solr server, and from inside the main solr server I am doing simple *:* query to another solr server by using solrj. But most of the time I get following error. Cannot parse '*:*': Encountered EOF at line 1, column

Re: Creating A User Interface On Top of Solr

2015-06-24 Thread Alessandro Benedetti
Erick, related that I noticed that a lot of times, a developer would need an intermediate API that will proxy the Search UI requests to Solr. Of course there are scenarios where is necessary to build this intermediate API ( for example if you customise how the results must be processed after Solr

Re: Solr Unexpected Query Parser Exception

2015-06-24 Thread Upayavira
On Wed, Jun 24, 2015, at 11:19 AM, Vishnu Mishra wrote: I think there is no issue with query escaping. I am doing shard query to my main solr server, and from inside the main solr server I am doing simple *:* query to another solr server by using solrj. But most of the time I get

Re: fq versus q

2015-06-24 Thread Esther Goldbraich
Some clarification: I would like to understand how solr processes fq (without cache) versus q when sort and group are required. From: Esther Goldbraich/Haifa/IBM@IBMIL To: solr-user@lucene.apache.org Cc: Arnon Yogev/Haifa/IBM@IBMIL, Shai Erera/Haifa/IBM@IBMIL Date: 24/06/2015 02:29 PM

Re: Creating A User Interface On Top of Solr

2015-06-24 Thread Shawn Heisey
On 6/24/2015 4:16 AM, Alessandro Benedetti wrote: related that I noticed that a lot of times, a developer would need an intermediate API that will proxy the Search UI requests to Solr. Of course there are scenarios where is necessary to build this intermediate API ( for example if you

fq versus q

2015-06-24 Thread Esther Goldbraich
Hi, We are comparing the performance of fq versus q for queries that are actually filters and should not be cached. In part of queries we see strange behavior where q performs 5-10x better than fq. The question is why? An example1: q=maildate:{DATE1 to DATE2} COMPARED TO

Re: Term Vector and Optimization

2015-06-24 Thread Upayavira
On Wed, Jun 24, 2015, at 08:41 PM, sudeepgarg wrote: Hi, can someone help me in this regard? What additional help do you need? Upayavira

Re: Term Vector and Optimization

2015-06-24 Thread Upayavira
On Wed, Jun 24, 2015, at 10:51 PM, sudeepgarg wrote: I would like to ask that after merging with old segments which was generated with term vectors=true this won't cause any trouble i.e. index corruption or index mismatch. and new segments will be merge with old segments irrespective we

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-24 Thread Mikhail Khludnev
Just pulled and launched Solr 5.2.1 dropped multivalued child into see data below. Response is quite correct: id:22, COLOR_s:Blue,SIZE_ss:[XL,XXL]}]}]

Re: fq versus q

2015-06-24 Thread Upayavira
Are you wanting to do no scoring at all, or just have a portion of the query not contribute to the score? If you don't want scoring at all, just sort by another field. If you don't have a field, I just tried sort=1 desc, and it worked! This should, if I'm right, pull documents out of the index in

Re: Term Vector and Optimization

2015-06-24 Thread sudeepgarg
I would like to ask that after merging with old segments which was generated with term vectors=true this won't cause any trouble i.e. index corruption or index mismatch. and new segments will be merge with old segments irrespective we have disable the term feature or not. And we are fine with

Re: /suggest through SolrJ?

2015-06-24 Thread Alessandro Benedetti
https://issues.apache.org/jira/browse/SOLR-7719 I will work on it as soon as I can, it is very simple. Cheers 2015-05-06 13:38 GMT+01:00 Alessandro Benedetti benedetti.ale...@gmail.com : Exactly Tomnaso , I was referring to that ! I wrote another mail in the dev mailing list, I will open a

Term Vector and Optimization

2015-06-24 Thread sudeep kumar
I want to know what is impact to disable term vector to existing production environment, I mean how new segments create and how old segments will merge with new segments because before this term vector was enable. I have one more question Is schema.xml file read during solr core optimization? 

Re: How to do a Data sharding for data in a database table

2015-06-24 Thread wwang525
Hi All, I built the Solr index with 14 M records. I have 20 G RAM in my local machine, and the Solr instance was started with -Xms1024m -Xmx8196m The following query: http://localhost:8983/solr/db-mssql/select?q=*:*fq=GatewayCode:(YYZ)fq=DestCode:(CUN)fq=Duration:(5 OR 6 OR 7 OR

Re: Term Vector and Optimization

2015-06-24 Thread Upayavira
On Wed, Jun 24, 2015, at 03:27 PM, Upayavira wrote: On Wed, Jun 24, 2015, at 02:50 PM, sudeep kumar wrote: I want to know what is impact to disable term vector to existing production environment, I mean how new segments create and how old segments will merge with new segments because

Re: fq versus q

2015-06-24 Thread Shawn Heisey
On 6/24/2015 5:28 AM, Esther Goldbraich wrote: We are comparing the performance of fq versus q for queries that are actually filters and should not be cached. In part of queries we see strange behavior where q performs 5-10x better than fq. The question is why? An example1:

Re: Term Vector and Optimization

2015-06-24 Thread Upayavira
On Wed, Jun 24, 2015, at 02:50 PM, sudeep kumar wrote: I want to know what is impact to disable term vector to existing production environment, I mean how new segments create and how old segments will merge with new segments because before this term vector was enable. I have one more

Re: Term Vector and Optimization

2015-06-24 Thread sudeepgarg
as i understood that after merging with old segments which was generated with term vectors=true this won't cause any trouble i.e. index corruption or index mismatch. and new segments will be merge with old segments irrespective we have disable the term feature or not. And we are fine with this

Re: Implicit Router Configurations

2015-06-24 Thread Erick Erickson
There's also a nifty plugin for IntelliJ that'll allow you to edit files on ZK if you use that IDE. On Wed, Jun 24, 2015 at 4:51 AM, Upayavira u...@odoko.co.uk wrote: You can use the server/scripts/cloud-scripts/zkcli.sh script (or the cmd one) in server/scripts/cloud-scripts. Note, in older

Re: solr help

2015-06-24 Thread Erick Erickson
See inline. On Wed, Jun 24, 2015 at 1:49 PM, seunghun@leaseplan.com wrote: Hi I am new and learning Solr-5.2.1. I am using windows without servlet.(using post.jar) i have manage to index some files and try searching on http://localhost:8983/solr/test/browse I have few question to ask.

Re: fq versus q

2015-06-24 Thread Erick Erickson
Tell us a bit more about your test setup. 1 or 2 tests don't mean much. For instance, if the fq query has to load the low-level caches from disk then the q-only query is run and doesn't that could skew the results. Or if somehow you're hitting the queryResultCache. Or Frankly I'd disable all

Re: fq versus q

2015-06-24 Thread Yonik Seeley
Why is cache=false set for the filter? Grouping uses a 2 pass algorithm by default, so that means that the filter will need to be generated twice (I think) if caching is turned off. Also, when you try to use the fq version, what are you using for the main query? -Yonik On Wed, Jun 24, 2015 at

Re: fq versus q

2015-06-24 Thread Jack Krupansky
Yonik added syntax to request a constant score query in Solr with the ^= operator. For example: +color:blue^=1 text:shoes See: https://issues.apache.org/jira/browse/SOLR-7218 -- Jack Krupansky On Wed, Jun 24, 2015 at 1:41 PM, Shai Erera ser...@gmail.com wrote: Thanks Shawn, What's Solr

Re: fq versus q

2015-06-24 Thread jim ferenczi
In part of queries we see strange behavior where q performs 5-10x better than fq. The question is why? Are you sure that the query result cache is disabled ? 2015-06-24 13:28 GMT+02:00 Esther Goldbraich estherg...@il.ibm.com: Hi, We are comparing the performance of fq versus q for queries

Re: fq versus q

2015-06-24 Thread Shai Erera
Thanks Shawn, What's Solr equivalence to ConstantScoreQuery? I.e., what if you want to run a query that does not score, but only filter. The rationale behind using a non-cached 'fq' was just that. Shai On Wed, Jun 24, 2015 at 4:29 PM, Shawn Heisey apa...@elyograg.org wrote: On 6/24/2015 5:28

Re: Term Vector and Optimization

2015-06-24 Thread sudeepgarg
Hi, can someone help me in this regard? Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/Term-Vector-and-Optimization-tp4213647p4213732.html Sent from the Solr - User mailing list archive at Nabble.com.

solr help

2015-06-24 Thread Seunghun . Han
Hi I am new and learning Solr-5.2.1. I am using windows without servlet.(using post.jar) i have manage to index some files and try searching on http://localhost:8983/solr/test/browse I have few question to ask. 1. Can i modify browse to show little bit of the content that i search? ex)

Re: fq versus q

2015-06-24 Thread Shai Erera
Ah thanks. I see it was added in 5.1 - is there any other way prior to that (like 4.7)? if not, I guess the only option is to not use fq if we don't intend to cache it, and on 5.1 use the ^= syntax. Shai On Wed, Jun 24, 2015 at 9:21 PM, Jack Krupansky jack.krupan...@gmail.com wrote: Yonik