Thanks Yonik. This does not seem to work for me. This is wgat I did

1) q=displayName:rvn* brings me two records (a) "RVN Viewpoint Users" and (b) 
"RVN Project Admins"

2) {!complexphrase}"RVN*" --> Unknown query type 
\"org.apache.lucene.search.PrefixQuery\" found in phrase query string \"RVN*\""

3) {!complexphrase}"RVN V*" -- Does not bring any result back.

4) {!complexphrase}"RVN Viewpoint*" -- Does not bring any result back.

Do I need to make any configuration changes to get this working?

Regards,
Dinesh Babu.



-----Original Message-----
From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley
Sent: 07 December 2014 03:30
To: solr-user@lucene.apache.org
Subject: Re: How to stop Solr tokenising search terms with spaces

On Sat, Dec 6, 2014 at 7:17 PM, Dinesh Babu <dinesh.b...@pb.com> wrote:
> Just curious, why solr does not provide a simple mechanism to do a phrase 
> search ?

Simple phrase queries:
q= field1:"Hanks Major"

Phrase queries with wildcards / partial matches are a different story... they 
are "complex":

q={!complexphrase}"hanks ma*"

See more examples here:
http://heliosearch.org/solr-4-8-features/

-Yonik
http://heliosearch.org - native code faceting, facet functions, sub-facets, 
off-heap data

________________________________

Reply via email to