Re: demo app explaining solr features

2014-09-27 Thread Mikhail Khludnev
On Sat, Sep 27, 2014 at 12:26 PM, Anurag Sharma wrote: > I am wondering if there is any demo app that can demonstrate all the > features/capabilities of solr. My intention is to understand, use and play > around all the features supported by solr. > https://lucene.apache.org/solr/4_10_0/tutorial

Re: SolrCould read-only replicas

2014-09-27 Thread Erick Erickson
Well, replicas _can_ cross data centers, there's nothing explicitly preventing it. But the network latency will cause "interesting" problems, not to mention ZooKeeper Quorum sensing being challenging. But your description is accurate, there's no such thing as a "read only replica" in SolrCloud. Th

SolrCould read-only replicas

2014-09-27 Thread Sandeep Tikoo
Hi- I have been reading up on SolrCloud and it seems that it is not possible to have a cross-datacenter read-only slave anymore but wanted to ask here to be sure. We currently have a pre Solr 4.0 installation with the master instance in our US mid-west datacenter. The datacenter in Europe has r

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Yes, that was it, thank you! On Sat, Sep 27, 2014 at 5:28 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > http://wiki.apache.org/solr/SchemaXml#Default_query_parser_operator ? > once again, debugQuery=true perfectly explains what's going on with q. > > On Sun, Sep 28, 2014 at 1:24 AM,

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Mikhail Khludnev
http://wiki.apache.org/solr/SchemaXml#Default_query_parser_operator ? once again, debugQuery=true perfectly explains what's going on with q. On Sun, Sep 28, 2014 at 1:24 AM, White, Bill wrote: > It worked for me once I changed to > > -color:({* TO red} OR {red TO *}) > > I'm not sure why the OR

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
It worked for me once I changed to -color:({* TO red} OR {red TO *}) I'm not sure why the OR is needed, maybe it's my version? (4.6.1) On Sat, Sep 27, 2014 at 5:22 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > hm. try to convert it to query q=-color:({* TO red} {red TO *}) and che

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Mikhail Khludnev
hm. try to convert it to query q=-color:({* TO red} {red TO *}) and check the explanation from debugQuery=true I tried to play with my index "q": "*:*", "facet.field": "swatchColors_string_mv", "fq": "-swatchColors_string_mv:({* TO RED} {RED TO *})", I got the following facets:

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Hmm. If I understand correctly this builds a set out of open intervals (exclusive ranges), that's a great idea! It doesn't seem to work for me, though; fq=-color:({* TO red} {red TO *}) is giving me results with color="burnt sienna" The field is defined as On Sat, Sep 27, 2014 at 4:43 PM, Mik

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Yonik Seeley
Heh... very clever, Mikhail! -Yonik http://heliosearch.org - native code faceting, facet functions, sub-facets, off-heap data On Sat, Sep 27, 2014 at 4:43 PM, Mikhail Khludnev wrote: > indeed! > the exclusive range {green TO red} matches to the "lemon yellow" > hence, the negation suppresses it

Re: Append children documents for nested document

2014-09-27 Thread Mikhail Khludnev
It's never possible. You have to reindex whole block. On Tue, Sep 16, 2014 at 6:20 PM, bradhill99 wrote: > Anyone can help me about this? or Solr not support adding additional > children > documents to existed parent document? > > > > -- > View this message in context: > http://lucene.472066.n3.

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Mikhail Khludnev
indeed! the exclusive range {green TO red} matches to the "lemon yellow" hence, the negation suppresses it from appearing fq=-color:{green TO red} then you need to suppress eg black and white also fq=-color:({* TO green} {green TO red} {red TO *}) I have no control over the > possible values of 'c

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Thanks! On Sat, Sep 27, 2014 at 4:18 PM, Yonik Seeley wrote: > On Sat, Sep 27, 2014 at 3:46 PM, White, Bill wrote: > > Hmm, that won't work since color is free-form. > > > > Is there a way to invoke (via fq) a user-defined function (hopefully > > defined as part of the fq syntax, but alternativ

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Yonik Seeley
On Sat, Sep 27, 2014 at 3:46 PM, White, Bill wrote: > Hmm, that won't work since color is free-form. > > Is there a way to invoke (via fq) a user-defined function (hopefully > defined as part of the fq syntax, but alternatively, written in Java) and > have it applied to the resultset? https://wik

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
OK, let me try phrasing it better. How do I exclude from search, any result which contains any value for multivalued field 'color' which is not within a given "constraint set" (e.g., "red", "green", "yellow", "burnt sienna"), given that I do not what any of the other possible values of 'color' are

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Mikhail Khludnev
On Sat, Sep 27, 2014 at 11:36 PM, White, Bill wrote: > but do NOT match ANY other color. Bill, I miss the whole picture, it's worth to rephrase the problem in one sentence. But regarding the quote above, you can try to use exclusive ranges https://lucene.apache.org/core/4_6_0/queryparser/org/ap

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Hmm, that won't work since color is free-form. Is there a way to invoke (via fq) a user-defined function (hopefully defined as part of the fq syntax, but alternatively, written in Java) and have it applied to the resultset? On Sat, Sep 27, 2014 at 3:41 PM, Yonik Seeley wrote: > On Sat, Sep 27,

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Yonik Seeley
On Sat, Sep 27, 2014 at 3:36 PM, White, Bill wrote: > Sorry, color is multivalued, so a given record might be both blue and red. > I don't want those to show up in the results. I think the only way currently (out of the box) is to enumerate the other possible colors to exclude them. color:(red y

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Sorry, color is multivalued, so a given record might be both blue and red. I don't want those to show up in the results. On Sat, Sep 27, 2014 at 3:36 PM, White, Bill wrote: > Not just that. I'm looking for things which match either red or yellow or > green, but do NOT match ANY other color. I

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Not just that. I'm looking for things which match either red or yellow or green, but do NOT match ANY other color. I can probably drop the requirement related to having no color. On Sat, Sep 27, 2014 at 3:28 PM, Yonik Seeley wrote: > On Sat, Sep 27, 2014 at 2:52 PM, White, Bill wrote: > > He

Re: fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread Yonik Seeley
On Sat, Sep 27, 2014 at 2:52 PM, White, Bill wrote: > Hello, > > I've attempted to figure this out from reading the documentation but > without much luck. I looked for a comprehensive query syntax specification > (e.g., with BNF and a list of operator semantics) but I'm unable to find > such a do

fq syntax for requiring all multiValued field values to be within a list?

2014-09-27 Thread White, Bill
Hello, I've attempted to figure this out from reading the documentation but without much luck. I looked for a comprehensive query syntax specification (e.g., with BNF and a list of operator semantics) but I'm unable to find such a document (does such a thing exist? or is the syntax too much of a

Expunging Deletes

2014-09-27 Thread Eric Katherman
I'm running into memory issues and wondering if I should be using expungeDeletes on commits. The server in question at the moment has 450k documents in the collection and represents 15GB on disk. There are also 700k+ "Deleted Docs" and I'm guessing that is part of the disk space consumption b

Re: java.lang.NumberFormatException: For input string: "string;#-6.872515521, 53.28853084"

2014-09-27 Thread Jack Krupansky
And how is the schema field declared. Seems like it's a TrieDoubleField, which should be a simple floating point value. You should be using the spatial field types. -- Jack Krupansky -Original Message- From: Erick Erickson Sent: Friday, September 26, 2014 12:20 PM To: solr-user@lucen

demo app explaining solr features

2014-09-27 Thread Anurag Sharma
I am wondering if there is any demo app that can demonstrate all the features/capabilities of solr. My intention is to understand, use and play around all the features supported by solr. Also looking to explore how solr fits with NLP (like open-nlp), different datastores (like cassandra, mongodb,

applicability of schema on document

2014-09-27 Thread Anurag Sharma
I am trying to understand how the schema and it's field types gets applied to a document. Is it based on a document Id e.g. how to specify solr to store fields like age as integer, dateofbirth as date but not as a string or vice versa. Also, is it possible to change the field type at runtime? Dire