Re: is phrase search possible in solr

2013-04-22 Thread Jack Krupansky
M To: solr-user@lucene.apache.org Subject: Re: is phrase search possible in solr Hi, If I use shinglingFilter than all type of queries will be impacted. I want queries within double quotes to be an exact search but for queries without double quotes all analyzers and tokenizers should be applied. Is there

Re: is phrase search possible in solr

2013-04-22 Thread Erick Erickson
bq: wherein if I have a query in double quotes it simply ignores all the tokenizers and analyzers. Nope. In general you're quite right, you need to re-index whenever you change your schema... You could define the query part of your field to just use KeywordTokenizerFactory, but that would affect _

Re: is phrase search possible in solr

2013-04-21 Thread vicky desai
Hi, If I use shinglingFilter than all type of queries will be impacted. I want queries within double quotes to be an exact search but for queries without double quotes all analyzers and tokenizers should be applied. Is there a setting or a configuration in schema.xml which can cater this requireme

Re: is phrase search possible in solr

2013-04-21 Thread qibaoyuan
Shingling filter may be help. > I want to do a phrase search in solr without analyzers being applied to it > eg - If I search for *"DelhiDareDevil"* (i.e - with inverted commas)it > should search the exact text and not apply any analyzers or tokenizers on > this field > However if i search for *

Re: is phrase search possible in solr

2013-04-21 Thread vicky desai
Hi Jack, Making a changes in the schema either keyword tokenizer or copy field option which u suggested would require reindexing of entire data. Is there an option wherein if I have a query in double quotes it simply ignores all the tokenizers and analyzers. -- View this message in context: h

Re: is phrase search possible in solr

2013-04-21 Thread vicky desai
Hi, Agreed it is a typo. And yes I can use one set of analyzers and tokenizers for query as well as indexing but that too will not solve my problem -- View this message in context: http://lucene.472066.n3.nabble.com/is-phrase-search-possible-in-solr-tp4057312p4057802.html Sent from the Solr -

Re: is phrase search possible in solr

2013-04-19 Thread Jack Krupansky
ginal Message- From: Jack Krupansky Sent: Friday, April 19, 2013 11:14 AM To: solr-user@lucene.apache.org Subject: Re: is phrase search possible in solr By definition, phrase search is one of two things: 1) match on a string field literally, or 2) analyze as a sequence of tokens as per the field type

Re: is phrase search possible in solr

2013-04-19 Thread Jack Krupansky
By definition, phrase search is one of two things: 1) match on a string field literally, or 2) analyze as a sequence of tokens as per the field type index analyzer. You could use the keyword tokenizer to store the whole field as one string, with filtering for the whole string. Or, just make it

Re: is phrase search possible in solr

2013-04-19 Thread Raymond Wiker
On Apr 19, 2013, at 16:59 , vicky desai wrote: > I want to do a phrase search in solr without analyzers being applied to it > eg - If I search for *"DelhiDareDevil"* (i.e - with inverted commas)it > should search the exact text and not apply any analyzers or tokenizers on > this field > However i