Hi Ahmet,

> a) I think wildcard search is by default "case sensitive"?
> Is there a
> way to make case insensitive?
>>Wildcard searches are not analyzed. To case insensitive search you can
lowercase query terms >>at client side. (with using lowercasefilter at
index time) e.g. Mail* => mail*
> 
> I discovered that the normal query type doesn't work with wildcards
> and so I'm using the "Filter Query" to query these. 
>>I don't understand this. Wildcard search works with q parameter if you
are asking that. >>&q=mail*

For the 2 points above, my bad. I'm already using the "lowercasefilter"
but I was not lowering the query with wildcards (the others are lowered
by the analyser). So it's working fine now! On my tests yesterday
probably I was testing &q=Mail* and &fq=mail* (and didn't notice the
difference) and read somewhere that it wasn't possible (probably on
older solr version) so I get the wrong conclusion that it wasn't
working. 

>>But it is unusual to use both leading and trailing * operator. Why are
you doing this?

Yes I know, but I have a few queries that need this. I'll try the
"ReversedWildcardFilterFactory". 

>>By default it is not supported. With SOLR-1604 is it possible.
Ok then. I guess "SOLR-1604" is the answer for most of my problems. I'm
going to give it a try and then I'll share some feedback.

Thanks for your help and sorry for my newbie confusions. :)
Frederico

-----Original Message-----
From: Ahmet Arslan [mailto:iori...@yahoo.com] 
Sent: sexta-feira, 30 de Julho de 2010 12:09
To: solr-user@lucene.apache.org
Subject: RE: wildcard and proximity searches

> a) I think wildcard search is by default "case sensitive"?
> Is there a
> way to make case insensitive?

Wildcard searches are not analyzed. To case insensitive search you can
lowercase query terms at client side. (with using lowercasefilter at
index time) e.g. Mail* => mail*

 
> I discovered that the normal query type doesn't work with wildcards
> and so I'm using the "Filter Query" to query these. 

I don't understand this. Wildcard search works with q parameter if you
are asking that. &q=mail*

> field my
> queries are much slower (I have some queries like *word* or
> *word1* or
> *word2* that take about one minute to perform)
> Is there a way to optimize these queries (without removing
> the wildcards
> :))?

It is normal for leading wildcard search to be slow. Using
ReversedWildcardFilterFactory at index time can speedup it.

But it is unusual to use both leading and trailing * operator. Why are
you doing this? 

> c)Is there a way to do phrase queries with wildcards? Like
> "This solr*
> mail*"? Because the tests I made, when using quotes I think
> the wildcards are ignored.

By default it is not supported. With SOLR-1604 is it possible.

> d)How exactly works the pf (phrase fields) and ps (phrase
> slop)
> parameters and what's the difference for the proximity
> searches (ex:
> "word word2"~20)?

These parameters are specific to dismax query parser. 
http://wiki.apache.org/solr/DisMaxQParserPlugin



      

Reply via email to