Re: Range Filter for Multi-Valued Date Fields

2016-08-23 Thread Mikhail Khludnev
It executes both half closed ranges first, here the undesired first doc comes in. Then it intersect these document sets, and here again, the undesired first doc comes through. On Tue, Aug 23, 2016 at 5:15 PM, Iana Bondarska wrote: > Hello Mikhail, > I convert filters that

Re: Settings for DocValues

2016-08-23 Thread Zheng Lin Edwin Yeo
Hi Erick, Thanks for the explanation. Regards, Edwin On 24 August 2016 at 02:27, Erick Erickson wrote: > These are orthogonal. The indexed and docvalues > structures are very different. One is useful for > searching and the other is useful for faceting and the like.

Re: Custom handler/content stream loader

2016-08-23 Thread Alexandre Rafalovitch
Have you tried starting with the DelimitedPayloadTokenFilterFactory? There is a sample configuration in the shipped examples: https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.1.0/solr/example/example-DIH/solr/db/conf/managed-schema#L625 Regards, Alex. Newsletter and

Re: Custom handler/content stream loader

2016-08-23 Thread Jamie Johnson
Ok, did a bit more digging. It looks like if I build a custom ContentStreamLoader I can create a custom AddOrUpdateCommand that is ultimately responsible for building the lucene document. So looks like if I build a custom UpdateRequestHandler I can register my custom ContentStreamLoader and I'll

Re: Graph Query Parser

2016-08-23 Thread Joel Bernstein
If you're using Solr Cloud, the shortestPath streaming expression will do that for you: https://cwiki.apache.org/confluence/display/solr/Streaming+Expressions#StreamingExpressions-shortestPath Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Aug 23, 2016 at 4:34 PM, Jigar Shah

Graph Query Parser

2016-08-23 Thread Jigar Shah
Hello, I am trying to get "path" from root node to leaves using Graph Query Parser. Graph Query Parser gives me all child nodes from root but not specific paths. Can someone suggest how to get that? e.g: If i have parent to child relation as follows. A -> B,C -> D D is child of B and C and

Custom handler/content stream loader

2016-08-23 Thread Jamie Johnson
I have a need to build custom field types that store additional metadata at the field level in a payload. I was thinking that I could satisfy this by building a custom UpdateRequest that captured this additional information in XML, but I am not really sure how to get at this additional

Is it safe to upgrade an existing field to docvalues?

2016-08-23 Thread Ronald Wood
We are planning to migrate from Solr 4.10.4 to 5.5.2 in the next couple of months. We do not use SolrCloud. When doing initial testing in our dev and qa environments we ran into cases where we got errors for fields that had docvalues newly enabled, but not re-indexed. Mixed

Re: Error upgrading from 6.0 to 6.1

2016-08-23 Thread Stephen Lewis
Erick, Shawn, you're right on both counts. Mixed jar versions are happening in both cases, and only lead to a fatal error on on the upgrade to 6.1.0. So there was a big gap in my upgrading methodology. I've confirmed that fixing the bootstrapping script allows the upgrade and that the correct jar

Re: Settings for DocValues

2016-08-23 Thread Erick Erickson
These are orthogonal. The indexed and docvalues structures are very different. One is useful for searching and the other is useful for faceting and the like. If you set indexed="false" and docValues="true", then try to search on the field you roughly do a "table scan" which is very slow. Rule of

Re: help with DIH transformer to add a suffix to column names

2016-08-23 Thread Wendy
Hi Alex, It worked out kindly. I have to specify table column names. Using customer transformer allowed me to change column name to _stem. In this way, it simplifies field ranking in solrconfig.xml file and simplifies

Settings for DocValues

2016-08-23 Thread Zheng Lin Edwin Yeo
Hi, Would like to find out, if we set docValues="true" in my configuration of the fieldType in schema,xml, must we set the corresponding indexed="false" and stored="false" Will there be any implication if I set my indexed="true and stored="true"? I'm using Solr 6.1.0 Regards, Edwin

Re: Language support

2016-08-23 Thread Walter Underwood
Synonyms are also domain specific. A synonym set for one area may be completely wrong in another. In cooking, arugula and rocket are the same thing. In military or aerospace, missile and rocket are very similar. I would start with librarians. They maintain controlled vocabularies (called

Language support

2016-08-23 Thread Bradley Belyeu
Hi, I’m trying to find a synonym list for any of the following languages: Catalan, Farsi, Hindi, Korean, Latvian, Dutch, Romanian, Thai, and Turkish Does anyone know of resources where I can get a synonym list for these languages?

Re: Range Filter for Multi-Valued Date Fields

2016-08-23 Thread Iana Bondarska
Hello Mikhail, I convert filters that come from other part of application and in general cannot combine many filters into one , since conditions can be quite complex. Could you please provide more details why is this expected behavior - (p_happyDates:[1975-10-31T00:00:00.000Z+TO+*]+AND+p_

Re: Indexing (x,y) points representing characteristics

2016-08-23 Thread Alexandre Rafalovitch
You could copyField for faceting if that's the only limiting factor. Or even for each separate use case. Just don't store the copied values. Regards, Alex On 23 Aug 2016 8:36 PM, "marotosg" wrote: > Hi. > I have a use case I am trying to solve and stuck with some ideas.

Re: help with DIH transformer to add a suffix to column names

2016-08-23 Thread Alexandre Rafalovitch
I am still not sure it is the right approach. As opposed to managed schema, etc. But... If you add dynamic field * it will accept any field. And DIH test for skipping fields unknown in schema during automatic name matching should probably accept it. Do that as step one, see that you get fields

Indexing (x,y) points representing characteristics

2016-08-23 Thread marotosg
Hi. I have a use case I am trying to solve and stuck with some ideas. I would need to index one field in my collection with x,y values which represents how a person is located on an axis based on some characteristics of him. x and y go from 0 to 1 in 0.1 gaps. For instance a person can have

Re: SolrCore is loading in the middle of indexing.

2016-08-23 Thread Shawn Heisey
On 8/23/2016 4:49 AM, Pranaya Behera wrote: > In the middle of indexing solrcore gets reloaded and causing 503 > error. Here is the stack trace of the issue. > Error 503 >

Re: help with DIH transformer to add a suffix to column names

2016-08-23 Thread Wendy
Hi Emir,I have many tables and columns to index. One of the requirements is to dynamically index columns without knowing column names. In this way, if a new column is added later on, we don't need to change the configurations, just need to do a delta-imput.I did use Solr with mongodb and

AW: Re: Tagging and excluding Filters with BlockJoin Queries and BlockJoin Faceting

2016-08-23 Thread Tobias Lorenz
Hi Mikhail, Thanks for replying so quickly with a suggestion. I'm a colleague of Stefan and working with him on our project. We tried composing our solr query with exclusion instructions, and the result was that the facet excluded by tag did not show up anymore in the result, instead of

Re: Error upgrading from 6.0 to 6.1

2016-08-23 Thread Shawn Heisey
On 8/22/2016 9:18 PM, Stephen Lewis wrote: > Oops, apologies for my confusing grammar and for missing the > attachment. The intro sentence should have read "I have a question > about upgrading a solr cloud cluster in place." I've actually attached > the log below this time. The mailing list eats

Re: Range Filter for Multi-Valued Date Fields

2016-08-23 Thread Mikhail Khludnev
Hello Iana, I consider is as expected behavior, perhaps usually it's done as =p_happyDates:[1975-10-31T00:00:00.000Z+TO+1975-10-31T23:59:59.999Z], which is not equivalent to combining half closed ranges with boolean query. I wonder why did you do like that? On Tue, Aug 23, 2016 at 2:33 PM, Iana

Range Filter for Multi-Valued Date Fields

2016-08-23 Thread Iana Bondarska
Hi All, could you help me please with multiple range filters on multi valued fields: I have following dataset: { "p_happyDates":[ "1986-05-16T20:00:00Z", "1875-04-29T21:57:56Z", "1906-07-04T21:57:56Z"] }, { "p_happyDates":[ "1986-05-16T20:00:00Z", "1975-10-31T21:57:56Z", "1966-12-28T21:00:00Z"] }

SolrCore is loading in the middle of indexing.

2016-08-23 Thread Pranaya Behera
Hi, In the middle of indexing solrcore gets reloaded and causing 503 error. Here is the stack trace of the issue. [main] ERROR org.apache.solr.client.solrj.impl.CloudSolrClient - Request to collection product failed due to (503)

Re: help with DIH transformer to add a suffix to column names

2016-08-23 Thread Emir Arnautovic
Hi Wendy, Why don't you simply specify column names in your query? Do you have that much columns that "SELECT *" is THE way to go? For the transformer - you changed the row, but fields in context are still using old names - maybe try setting field names in context (if possible - did not