Boosting Documents using the field Value

2017-06-23 Thread govind nitk
Hi Solr, My Index Data: id name category domain domain_ct 1 Banana Fruits Home > Fruits > Banana 2 2 Orange Fruits Home > Fruits > Orange 4 3 Samsung Mobile Electronics > Mobile > Samsung 3 I am able to retrieve the documents with dismax parser with the weights mentioned as below.

Re: Collection name in result

2017-06-23 Thread Jagrut Sharma
Thanks Erick & Alessandro. I am querying the collections by including '=c1,c2' syntax in the query. The suggestion of adding an additional field to the schema works. I configured this additional field to hold the collection's name and now the result from the collection includes the name. --

Re: Proximity searches with a wildcard

2017-06-23 Thread Erick Erickson
Have you looked at ComplexPhraseQueryParser? It adds some expense of course. See SOLR-1604. Best, Erick On Fri, Jun 23, 2017 at 1:06 PM, Michael Craven wrote: > I apologize in advance if this is too off topic or basic. I am a web > developer on a Drupal site tasked with

RE: Proximity searches with a wildcard

2017-06-23 Thread Markus Jelsma
Sure: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser -Original message- > From:Michael Craven > Sent: Friday 23rd June 2017 22:06 > To: solr-user@lucene.apache.org > Subject: Proximity searches with a wildcard >

Proximity searches with a wildcard

2017-06-23 Thread Michael Craven
I apologize in advance if this is too off topic or basic. I am a web developer on a Drupal site tasked with trying to improve searching capabilities for our users. A product manager asked to me if proximity searches and wildcards worked on our search form. I did some testing and found that,

RE: Questions about typical/simple clustered Solr software and hardware architecture

2017-06-23 Thread Markus Jelsma
Hello, see inline. -Original message- > From:ken edward > Sent: Friday 23rd June 2017 21:07 > To: solr-user@lucene.apache.org > Subject: Questions about typical/simple clustered Solr software and hardware > architecture > > Hello, > > I am brand new to Solr,

Does solr support multiple collapse officially?

2017-06-23 Thread Jeffery Yuan
I am trying to use multiple collapse (post) filters: - collapse on seriesId if seriesId are same - collapse on tmsId(another Id) if they are same But seems that Solr doesn't support multiple collapse filters. I get NullPointerException sometimes, which I summarized at

Questions about typical/simple clustered Solr software and hardware architecture

2017-06-23 Thread ken edward
Hello, I am brand new to Solr, and trying to ramp up quick. Please correct me if I am wrong, but from what I read, in a true production environment, is it true that : 1. Solr is made up of only "node" processes and "zookeeper" processes? 2. Each node and zookeeper process ideally runs on it's

Re: Facet is not working while querying with group

2017-06-23 Thread Aman Deep Singh
1. No it is with schema with some dynamic fields but facet fields are proper field 2. No copy field is stored field all are set as stored=false On Fri, Jun 23, 2017 at 10:21 PM Erick Erickson wrote: > OK, new collection. > > 1> With schemaless? When you add a document

Re: Using of Streaming to join between shards

2017-06-23 Thread Erick Erickson
You've provided no information to help guide an answer and even with more information there are too many variables to say definitively. There are quite a number of Streaming join options, see: https://cwiki.apache.org/confluence/display/solr/Streaming+Expressions. You'll have to do some

Re: Facet is not working while querying with group

2017-06-23 Thread Erick Erickson
OK, new collection. 1> With schemaless? When you add a document in schemaless mode, it makes some guesses that may not play nice later. 2> Are you storing the _destination_ of any copyField? Atomic updates do odd things if you set stored="true" for fields that are destinations for atomic

Re: Index 0, Size 0 - hashJoin Stream function Error

2017-06-23 Thread Susheel Kumar
Thanks for confirming. Here is the JIRA https://issues.apache.org/jira/browse/SOLR-10944 On Fri, Jun 23, 2017 at 11:20 AM, Joel Bernstein wrote: > yeah, this looks like a bug in the get expression. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Fri, Jun 23, 2017

Re: Facet is not working while querying with group

2017-06-23 Thread Aman Deep Singh
No Shawn, I download the latest solr again then run without installing by command ./bin/solr -c after upload the fresh configset and create the new collection Then create a single document in solr after do atomic update and the same error occurs again. On Fri, Jun 23, 2017 at 7:53 PM Shawn

Re: Index 0, Size 0 - hashJoin Stream function Error

2017-06-23 Thread Joel Bernstein
yeah, this looks like a bug in the get expression. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Jun 23, 2017 at 11:07 AM, Susheel Kumar wrote: > Hi Joel, > > As i am getting deeper, it doesn't look like a problem due to hashJoin etc. > > > Below is a simple let

Re: Index 0, Size 0 - hashJoin Stream function Error

2017-06-23 Thread Susheel Kumar
Hi Joel, As i am getting deeper, it doesn't look like a problem due to hashJoin etc. Below is a simple let expr where if search would not find a match and return 0 result. In that case, I would expect get(a) to show a EOF tuple while it is throwing exception. It looks like something wrong/bug

Using of Streaming to join between shards

2017-06-23 Thread mganeshs
Hi, So far we had only one shards so joins are working fine. And now as our data is growing, we would like to go for new shards and we would like to go with only default sharding mechanism for various reasons. Due to this, join will fail. as it's not supported if we have more than one shards.

Re: Collection name in result

2017-06-23 Thread Erick Erickson
H, you might be able to use a DocTransformer. Hmm, in fact that would work if you can keep the two separate. It just injects fields into the docs when they're being output. It would be the world's simplest transformer if it injected a hard-coded collection name (you'd have to have unique

Re: Query Partial Matching on auto schema

2017-06-23 Thread Erick Erickson
I simply do not recommend going to production with schemaless. That mechanism must make certain assumptions about the data and simply cannot anticipate all the types of searching you need to do. As Alessandro says, you can define whatever you want "by hand" and still have schemaless add input. It

Re: Facet is not working while querying with group

2017-06-23 Thread Shawn Heisey
On 6/20/2017 11:01 PM, Aman Deep Singh wrote: > If I am using docValues=false getting this exception > java.lang.IllegalStateException: Type mismatch: isBlibliShipping was > indexed with multiple values per document, use SORTED_SET instead at >

Re: [Solr Ref guide 6.6] Search not working

2017-06-23 Thread Cassandra Targett
There is an open JIRA issue to provide this search: https://issues.apache.org/jira/browse/SOLR-10299. Yes, it's pretty ironic that docs for a search engine doesn't have a search engine, and I agree it's absolutely necessary, but it's not done yet. The title keyword "search" (I hate to even call

Sort using If function containing multiple conditions

2017-06-23 Thread spanchal
Hi all, I am trying to sort my results using a function query. sort=if(eq(FIELD1,1) AND eq(FIELD2,1),1,0) desc but this is giving error: "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"],

Re: Complement Stream function - Invalid ReducerStream - substream comparator (sort) must be a superset of this stream's comparator

2017-06-23 Thread Joel Bernstein
I think it makes sense to create a jira ticket. Joel Bernstein http://joelsolr.blogspot.com/ On Thu, Jun 22, 2017 at 2:43 PM, Susheel Kumar wrote: > Please let me know if I shall create a JIRA and i can provide both > expressions and data to reproduce. > > On Thu, Jun

Re: Index 0, Size 0 - hashJoin Stream function Error

2017-06-23 Thread Joel Bernstein
Ok, I hadn't anticipated some of the scenarios that you've been trying out. Particularly reading streams into variables and performing joins etc... The main idea with variables was to use them with the new statistical evaluators. So you perform retrievals (search, random, nodes, knn etc...) set

Re: Query Partial Matching on auto schema

2017-06-23 Thread alessandro.benedetti
Quoting the official solr documentation : " You Can Still Be Explicit Even if you want to use schemaless mode for most fields, you can still use the Schema API to pre-emptively create some fields, with explicit types, before you index documents that use them. Internally, the Schema API and the

[Solr Ref guide 6.6] Search not working

2017-06-23 Thread alessandro.benedetti
Hi all, I was just using the new Solr Ref Guide[1] (If I understood correctly this is going to be the next official documentation for Solr). Unfortunately search within the guide works really bad... The autocomplete seems to be just on page title ( including headings would help a lot). If you

Re: Query Partial Matching on auto schema

2017-06-23 Thread Guilleret Florian
Yes I mean schemaless. Then with schemaless its impossible to have what I expect ? Guilleret Florian Tel : +33 6 21 28 43 06 2017-06-23 12:26 GMT+02:00 alessandro.benedetti : > With automatic schema do you mean schemaless ? > You will need

Re: Query Partial Matching on auto schema

2017-06-23 Thread alessandro.benedetti
With automatic schema do you mean schemaless ? You will need to define a schema managed/old legacy style as you prefer. Then you define a field type that suites your needs ( for example with an edge n-gram token filter[1] ). And you assign that field type to a specific field. Than in your

Query Partial Matching on auto schema

2017-06-23 Thread Guilleret Florian
Hi, I use SOLR 5.2.1 with automatic schema. But when try a query with a partial word, Solr didn't found anything. Exemple : I request a query : NHLDO Solr return nothing but there is a document with name NHLDO457 If i request this query : NHLDO457 Solr return me the document. So how i

Re: Collection name in result

2017-06-23 Thread alessandro.benedetti
I second Erick, it would be as easy as adding this field to the schema : "/> If you are using inter collections queries, just be aware there a lot of tricky and subtle problems with it ( such as unique Identifier must have same field name, distributed IDF inter collections ect ect) I am