Hi there Samnang!
Please see inline for comments:

On Tue, 09 Jun 2009 08:40:02 +0200, Samnang Chhun <samnang.ch...@gmail.com> wrote:

Hi all,
I just get started looking at using Solr as my search web service. But I
don't know does Solr have some features for multiple queries:

- Startswith
This is what we call prefix queries and wild card queries. For instance, you want something that starts with "man", you can search for man*

- Exact Match
Exact matching is done with apostrophes; "Solr rocks"

- Contain
Hmm, what do you mean by contain? Inside a given word? That might be a bit more tricky. We have an issue open at the moment for supporting leading wildcards, and that might allow for you to search for *cogn* and match recognition etc. If that was what you meant, you can look at the ongoing issue http://issues.apache.org/jira/browse/SOLR-218

- Doesn't Contain
NOT or - are keywords to exclude something (solr supports all the boolean operators that Lucene supports).

- In the range
range queries in solr are done by using brackets.
for instance
price:[500 TO 1000]
will return all results with prices ranging from 500 to 1000.

There is a lot of information on the Wiki that you should check out:
http://wiki.apache.org/solr/



Could anyone guide me how to implement those features in Solr?

Cheers,
Samnang


Cheers,
 Aleks


--
Aleksander M. Stensby
Lead software developer and system architect
Integrasco A/S
www.integrasco.no
http://twitter.com/Integrasco

Please consider the environment before printing all or any of this e-mail

Reply via email to