I can put "chinese cuisines" and "chinese cuisine" as two different tokens. But I was wondering if there is better way to do it, like tweaking different FilterFactory.
My problem is, if it's not exact match, when I search "cuisine", that would match both, I don't want that happen. Thanks Shunjia On Wed, Oct 17, 2012 at 1:28 PM, Otis Gospodnetic < otis.gospodne...@gmail.com> wrote: > Hi, > > Aren't you contradicting yourself a bit here? > You say you want exact matching, but then you say you want a query for > "chinese cuisines" to match "chinese cuisine", which is not exact. > > Otis > -- > Search Analytics - http://sematext.com/search-analytics/index.html > Performance Monitoring - http://sematext.com/spm/index.html > > > On Wed, Oct 17, 2012 at 1:25 PM, Nicholas Ding <nicholas...@gmail.com> > wrote: > > Hi, > > > > I have several tokens in a field containing more than one keyword, like > > "chinese food", "indian food", I want to do exact match. > > And even more, if the token is "chinese cuisine", but the query is > > ""chinese cuisines", I still want the query to match to token. > > > > Thanks > > Nicholas > > > > On Wed, Oct 17, 2012 at 11:46 AM, Jack Krupansky < > j...@basetechnology.com>wrote: > > > >> The answer is "Yes." Solr and Lucene are quite flexible. > >> > >> You neglected to offer any details about your specific use case which > >> might bias the answer one way or the other. What is some sample data and > >> some sample queries? > >> > >> -- Jack Krupansky > >> > >> -----Original Message----- From: Nicholas Ding > >> Sent: Wednesday, October 17, 2012 11:24 AM > >> To: solr-user@lucene.apache.org > >> Subject: How to do exact match? > >> > >> > >> Hello, > >> > >> I want to do exact match on Solr. I found two ways on Internet, one is > to > >> put PREFIX and SUFFIX around the text, another is to use > KeywordTokenizer. > >> > >> I was wondering which one is the better approach for doing exact match? > >> > >> Thanks > >> Nicholas > >> >