You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kalidoss MM <mm...@gmail.com> on 2009/03/23 11:16:47 UTC

Have query on wildchar.

Hi,

In my schema, I have Tags, AdTags and am giving the search like.  ?q=(Tags:
anton* and AdTags: Funn*)

my schema query parser is : <solrQueryParser defaultOperator="AND"/>

So Is it required to give the 'and' in the query?? Is yes is there any
difference b/w giving 'AND' & 'and' (case sensitive), Please let me know.

When am giving 'and' getting result and if am giving 'AND' and not any
results...  :( let me know.

Thanks,
Kalidoss.m,

Re: Have query on wildchar.

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi,
If your default is set to AND in the config, then you don't need to specify it in the "q" parameter.

"AND" and "and" are not the same.  Boolean operator is "AND" and is case sensitive as far as the query parser is concerned.


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Kalidoss MM <mm...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Monday, March 23, 2009 6:16:47 AM
> Subject: Have query on wildchar.
> 
> Hi,
> 
> In my schema, I have Tags, AdTags and am giving the search like.  ?q=(Tags:
> anton* and AdTags: Funn*)
> 
> my schema query parser is : 
> 
> So Is it required to give the 'and' in the query?? Is yes is there any
> difference b/w giving 'AND' & 'and' (case sensitive), Please let me know.
> 
> When am giving 'and' getting result and if am giving 'AND' and not any
> results...  :( let me know.
> 
> Thanks,
> Kalidoss.m,