Hello Binoy ,
I found that if I am using a StringField and index it using java
code/solr-admin it adds a \ before " ,
i.e. lest say I have string ==> test " , then it gets indexed as test \".
For all other special chars it does not do anything , so the trick which
worked for me is
while searchin
You should use the client utils method.
That way you're set even if you encounter special characters like + or ()
etc.
On Thu, 21 Jan 2016, 13:40 Alok Bhandari
wrote:
> Thanks Erick for your reply. Because of some medical reason I was out of
> office for a week.
>
> ClientUtils.escapeQueryChars
Thanks Erick for your reply. Because of some medical reason I was out of
office for a week.
ClientUtils.escapeQueryChars method from solrj client should be used? or
you think its better to escape only quote " character.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-t
This might be a good case for the Raw query parser (I haven't used it
myself).
https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-RawQueryParser
k/r,
Scott
On Wed, Jan 13, 2016 at 12:05 PM, Erick Erickson
wrote:
> what _does_ matter is getting all that through the par
what _does_ matter is getting all that through the parser which means
you have to enclose things in quotes and escape them.
For instance, consider this query stringFIeld:abc "i am not"
this will get parsed as
stringField:abc defaultTextField:"i am not".
To get around this you need to make sure
No.
On Wed, 13 Jan 2016, 16:58 Alok Bhandari
wrote:
> Hi Binoy thanks.
>
> But does it matter which query-parser I use , shall I use "lucene" parser
> or
> "edismax" parser.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-achieve-exact-string-match-query-wh
Hi Binoy thanks.
But does it matter which query-parser I use , shall I use "lucene" parser or
"edismax" parser.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-achieve-exact-string-match-query-which-includes-spaces-and-quotes-tp4250402p4250405.html
Sent from the Solr
Just query the string field and nothing else.
String fields only return on exact match.
On Wed, 13 Jan 2016, 16:52 Alok Bhandari
wrote:
> Hello ,
>
> I am using Solr 5.2.
>
> I have a field defined as "string" field type. It have some values in it
> like
>
> DOC-1 => abc ".. I am " not ? test
>