Re: How to connect Solr with Impala?

2015-07-24 Thread Upayavira
On Fri, Jul 24, 2015, at 12:53 AM, Rex X wrote: Given following Impala query: SELECT date, SUM(CAST(price AS DOUBLE)) AS price FROM table WHERE date='2014-01-01' AND store_id IN(1,2,3) GROUP BY date; To work with Solr 1. Will it be more efficient to directly use

Re: Custom Solr caches in a FunctionQuery that emulates the ExternalFileField

2015-07-24 Thread Upayavira
Mikhail, I've tried this out, but to be honest I can't work out what the score= parameter is supposed to add. I assume that if I do {!join fromIndex=other from=other_key to=key score=max}somefield:(abc dev) It will calculate the score for each document that has the same key value, and include

RE: Per-document and per-query analysis

2015-07-24 Thread Markus Jelsma
Hello Alessandro, i have thought about that, but in this case we do not want more fields, just perform some additional normalization filters based on some parameter. We need this type of index to be very low latency, and we have many varieties. We know from experience that hundreds of fields

Re: Nested objects in Solr

2015-07-24 Thread Alexandre Rafalovitch
Actually, Solr has been supporting Nested Objects for a little while: https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-NestedChildDocuments The schema represents a union of all possible fields though, so yes, some care needs to be

Re: Running SOLR 5.2.1 on Embedded Jetty

2015-07-24 Thread Darin Amos
Thanks Shawn, I actually figured out the issue while I was on my flight back home. It was a trivial problem caused by a bad assumption. I have some classpath issues now but those are problems I can solve. Sorry for not including any logs, the behaviour looked like it was simply not detecting

Re: term frequency with stemming

2015-07-24 Thread Darin Amos
Hi Dale, I would think the coffee shop is better, I have in-laws visiting at home. Thanks Darin On Jul 24, 2015, at 12:04 PM, Aki Balogh a...@marketmuse.com wrote: Hi All, I'm using TermVectorComponent and stemming (Porter) in order to get term frequencies with fuzzy matching. I'm

Scoring, payloads and phrase queries

2015-07-24 Thread Jamie Johnson
Is there a way to consider payloads for scoring in phrase queries like exists in PayloadTermQuery?

Re: Natively Execute SOLR Queries within an app server.

2015-07-24 Thread Mikhail Khludnev
SolrDispatchFilter holds CoreContainer cores, perhaps you can extend the filter to manage it to publish cores into jndi, where core can be found in other application, and is used for instantiating EmbeddedSolrServer. On Fri, Jul 24, 2015 at 9:50 PM, Darin Amos dari...@gmail.com wrote: Hello,

Re: Scoring, payloads and phrase queries

2015-07-24 Thread Jamie Johnson
looks like there is nothing that exists in this regard and there is no jira ticket that I could find. Is this something that there is any other interest in? Is this something that a ticket should be created for? On Fri, Jul 24, 2015 at 10:41 AM, Jamie Johnson jej2...@gmail.com wrote: Is there

Re: Unexpected docvalues type error using result grouping - Use UninvertingReader or index with docvalues

2015-07-24 Thread Erick Erickson
bq: This started when I turned on docvalues You _must_ re-index completely when changing something like this, so the notion of removing the index completely isn't really any extra work. Here's what I'd do. 1 just create a new collection with your current schema definition and index to _that_.

term frequency with stemming

2015-07-24 Thread Aki Balogh
Hi All, I'm using TermVectorComponent and stemming (Porter) in order to get term frequencies with fuzzy matching. I'm stemming at index and query time. Is there a way to get term frequency from the index? * termfreq doesn't support stemming or wildcards * terms component doesn't allow additional

Re: Unexpected docvalues type error using result grouping - Use UninvertingReader or index with docvalues

2015-07-24 Thread shamik
Thanks Eric. Here's the part which I'm not able to understand. I've for e.g. Source A, B, C and D in index. Each source contains n number of documents. Now, out of these, a bunch of documents in A and B are tagged with MediaType. I took the following steps: 1. Delete all documents tagged with

Re: Unexpected docvalues type error using result grouping - Use UninvertingReader or index with docvalues

2015-07-24 Thread Shawn Heisey
On 7/24/2015 3:48 PM, shamik wrote: Here's the part which I'm not able to understand. I've for e.g. Source A, B, C and D in index. Each source contains n number of documents. Now, out of these, a bunch of documents in A and B are tagged with MediaType. I took the following steps: 1. Delete

Re: Nested objects in Solr

2015-07-24 Thread Bill Au
What exactly do you mean by nested objects in Solr. It would help if you give an example. The Solr schema is flat as far as I know. Bill On Fri, Jul 24, 2015 at 9:24 AM, Rajesh rajesh.panneersel...@aspiresys.com wrote: You can use nested entities like below. document entity

Natively Execute SOLR Queries within an app server.

2015-07-24 Thread Darin Amos
Hello, I have an application server that is running both the solr.war and a REST API war within the same JVM. Is it possible to query the SOLR instance natively (non-blocking) without connecting over HTTP? I could use EmbeddedSolrServer but I cannot create a second instance of my core. If I

Re: Natively Execute SOLR Queries within an app server.

2015-07-24 Thread Upayavira
On Fri, Jul 24, 2015, at 07:50 PM, Darin Amos wrote: Hello, I have an application server that is running both the solr.war and a REST API war within the same JVM. Is it possible to query the SOLR instance natively (non-blocking) without connecting over HTTP? I could use EmbeddedSolrServer

[ANN] New Features For Splainer

2015-07-24 Thread Doug Turnbull
First, I wanted to humbly thank the Solr community for their contributions and feedback for our open source Solr sandbox, Splainer (http://splainer.io and http://github.com/o19s/splainer). The reception and comments have been generally positive and helpful, and I very much appreciate being part of

Re: caceh implemetation?

2015-07-24 Thread Mikhail Khludnev
On Fri, Jul 24, 2015 at 1:06 AM, Shawn Heisey apa...@elyograg.org wrote: On 7/23/2015 10:55 AM, cbuxbaum wrote: Say we have 100 party records. Then the child SQL will be run 100 times (once for each party record). Isn't there a way to just run the child SQL on all of the party

Re: Unexpected docvalues type error using result grouping - Use UninvertingReader or index with docvalues

2015-07-24 Thread shamik
I didn't use the REST API, instead updated the schema manually. Can you be specific on removing the data directory content ? I certainly don't want to wipe out the index. I've four Solr instances, 2 shards with a replica each. Are you suggesting clearing the index and re-indexing from scratch ?

Re: serious JSON Facet bug

2015-07-24 Thread Nagasharath
Is there a jira logged for this issue? Sent from my iPhone On 23-Jul-2015, at 11:09 pm, Nagasharath sharathrayap...@gmail.com wrote: I don't have this issue. I have tried with various json facet queries and my filter cache always come down to the 'minsize'( never exceeds configured)

Re: serious JSON Facet bug

2015-07-24 Thread Yonik Seeley
On Fri, Jul 24, 2015 at 8:03 PM, Nagasharath sharathrayap...@gmail.com wrote: Is there a jira logged for this issue? * SOLR-7781: JSON Facet API: Terms facet on string/text fields with sub-facets caused a bug that resulted in filter cache lookup misses as well as the filter cache exceeding

Re: Custom Solr caches in a FunctionQuery that emulates the ExternalFileField

2015-07-24 Thread Mikhail Khludnev
I think it's intended for {!join fromIndex=other from=other_key to=key score=max}my_boost_value_field thus it runs functional query, which matches all docs at other core with field value 'my_boost_value_field' as a score. Then, this score is passed through join query for other.other_key=key. Do

Re: Solr Clustering Issue

2015-07-24 Thread Joseph Obernberger
Thank you Upayavira and Shawn. Yes - the query works correctly using the standard select. I have a workaround where I simply specify the fields I want to search in each part of the query and do not specify a df. Just an FYI in case someone else runs into this. -Joe On 7/23/2015 10:51 AM,

Re: Nested objects in Solr

2015-07-24 Thread Rajesh
You can use nested entities like below. document entity name=OuterEntity pk=id query=SELECT * FROM User field column=id name=id / field column=name name=name / entity name=InnerEntity child=true

Re: Running SOLR 5.2.1 on Embedded Jetty

2015-07-24 Thread Upayavira
On Thu, Jul 23, 2015, at 10:14 PM, Darin Amos wrote: Hello, I have been trying to run the SOLR war with embedded Jetty and can’t seem to get the config quiet right. Is there any known documentation on this or is someone else doing this? I seem to just be setting up a document server at my

Re: XSLT with maps

2015-07-24 Thread Sreekant Sreedharan
Yes I am fairly new to XSLT. I used the velocity response writer for some prototypes. I found it very intuitive. But the requirement for the app specifically rules it out and mandates the XSLT approach. I have finally got it working. Thanks to all your help. Here's what I got (a minor correction