Re: Unable to perform search query after changing uniqueKey

2015-04-01 Thread Zheng Lin Edwin Yeo
> Play hard, but play safe! > > > >> Date: Wed, 1 Apr 2015 13:58:55 +0800 > >> Subject: Re: Unable to perform search query after changing uniqueKey > >> From: edwinye...@gmail.com > >> To: solr-user@lucene.apache.org > >> > >>

Re: Unable to perform search query after changing uniqueKey

2015-04-01 Thread Erick Erickson
he server. Lots and lots of good folks have > tripped over this one.http://www.w3schools.com/tags/ref_urlencode.asp > Play hard, but play safe! > >> Date: Wed, 1 Apr 2015 13:58:55 +0800 >> Subject: Re: Unable to perform search query after changing uniqueKey >> From: edwinye..

RE: Unable to perform search query after changing uniqueKey

2015-04-01 Thread steve
folks have tripped over this one.http://www.w3schools.com/tags/ref_urlencode.asp Play hard, but play safe! > Date: Wed, 1 Apr 2015 13:58:55 +0800 > Subject: Re: Unable to perform search query after changing uniqueKey > From: edwinye...@gmail.com > To: solr-user@lucene.apache.org

Re: Unable to perform search query after changing uniqueKey

2015-03-31 Thread Zheng Lin Edwin Yeo
Thanks Erick. Yes, it is able to work correct if I do not use spaces for the field names, especially for the uniqueKey. Regards, Edwin On 31 March 2015 at 13:58, Erick Erickson wrote: > I would never put spaces in my field names! Frankly I have no clue > what Solr does with that, but it can't

Re: Unable to perform search query after changing uniqueKey

2015-03-30 Thread Erick Erickson
I would never put spaces in my field names! Frankly I have no clue what Solr does with that, but it can't be good. Solr explicitly supports Java naming conventions, camel case, underscores and numbers. Special symbols are frowned upon, I never use anything but upper case, lower case and underscores

Re: Unable to perform search query after changing uniqueKey

2015-03-30 Thread Zheng Lin Edwin Yeo
Latest information that I've found for this is that the error only occurs for shard2. If I do a search for just shard1, those records that are assigned to shard1 will be able to be displayed. Only when I search for shard2 will the NullPointerException error occurs. Previously I was doing a search

Re: Unable to perform search query after changing uniqueKey

2015-03-30 Thread Zheng Lin Edwin Yeo
Hi Erick, I've changed the uniqueKey from id to Item No. Item No Below are my definitions for both the id and Item No. Regards, Edwin On 30 March 2015 at 23:05, Erick Erickson wrote: > Well, let's see the definition of your ID field, 'cause I'm puzzled. > > It's definitely A Bad Thing t

Re: Unable to perform search query after changing uniqueKey

2015-03-30 Thread Erick Erickson
Well, let's see the definition of your ID field, 'cause I'm puzzled. It's definitely A Bad Thing to have it be any kind of tokenized field though, but that's a shot in the dark. Best, Erick On Mon, Mar 30, 2015 at 2:17 AM, Zheng Lin Edwin Yeo wrote: > Hi Mostafa, > > Yes, I've defined all the f

Re: Unable to perform search query after changing uniqueKey

2015-03-30 Thread Zheng Lin Edwin Yeo
Hi Mostafa, Yes, I've defined all the fields in schema.xml. It is able to work on the version without SolrCloud, but it is not working for the one with SolrCloud. Both of them are using the same schema.xml. Regards, Edwin On 30 March 2015 at 14:34, Mostafa Gomaa wrote: > Hi Zheng, > > It's p

Re: Unable to perform search query after changing uniqueKey

2015-03-29 Thread Mostafa Gomaa
Hi Zheng, It's possible that there's a problem with your schema.xml. Are all fields defined and have appropriate options enabled? Regards, Mostafa. On Mon, Mar 30, 2015 at 7:49 AM, Zheng Lin Edwin Yeo wrote: > Hi Erick, > > I've tried that, and removed the data directory from both the shards.

Re: Unable to perform search query after changing uniqueKey

2015-03-29 Thread Zheng Lin Edwin Yeo
Hi Erick, I've tried that, and removed the data directory from both the shards. But the same problem still occurs, so we probably can rule out the "memory" issue. Regards, Edwin On 30 March 2015 at 12:39, Erick Erickson wrote: > I meant shut down Solr and physically remove the entire data > di

Re: Unable to perform search query after changing uniqueKey

2015-03-29 Thread Erick Erickson
I meant shut down Solr and physically remove the entire data directory. Not saying this is the cure, but it can't hurt to rule out the index having "memory"... Best, Erick On Sun, Mar 29, 2015 at 6:35 PM, Zheng Lin Edwin Yeo wrote: > Hi Erick, > > I used the following query to delete all the ind

Re: Unable to perform search query after changing uniqueKey

2015-03-29 Thread Zheng Lin Edwin Yeo
Hi Erick, I used the following query to delete all the index. http://localhost:8983/solr/update?stream.body=*:*http://localhost:8983/solr/update?stream.body= Or is it better to physically delete the entire data directory? Regards, Edwin On 28 March 2015 at 02:27, Erick Erickson wrote: > Y

Re: Unable to perform search query after changing uniqueKey

2015-03-29 Thread Zheng Lin Edwin Yeo
Hi Andrea, This is the query that I'm using. http://localhost:8983/solr/logmill/select?q=*:*&wt=xml&indent=true This is the stacktrace that I got. 500 10 true *:* xml java.lang.NullPointerException at org.apache.solr.handler.component.QueryComponent.mergeId

Re: Unable to perform search query after changing uniqueKey

2015-03-27 Thread Erick Erickson
You say you re-indexed, did you _completely_ remove the data directory first, i.e. the parent of the "index" and, maybe, "tlog" directories? I've occasionally seen remnants of old definitions "pollute" the new one, and since the key is so fundamental I can see it being a problem. Best, Erick On

Re: Unable to perform search query after changing uniqueKey

2015-03-27 Thread Andrea Gazzarini
Hi Edwin, please provide some other detail about your context, (e.g. complete stacktrace, query you're issuing) Best, Andrea On 03/27/2015 09:38 AM, Zheng Lin Edwin Yeo wrote: Hi everyone, I've changed my uniqueKey to another name, instead of using id, on the schema.xml. However, after I ha

Unable to perform search query after changing uniqueKey

2015-03-27 Thread Zheng Lin Edwin Yeo
Hi everyone, I've changed my uniqueKey to another name, instead of using id, on the schema.xml. However, after I have done the indexing (the indexing is successful), I'm not able to perform a search query on it. I gives the error java.lang.NullPointerException. Is there other place which I need