Can you share the analyzer for the datatype you are using?
If you are using WhitespaceTokenizerFactory as the tokenizer, "R-123" will
be one whole token in which case you shouldn't need to escape the hyphen
during search.

-Rahul

On Fri, Jun 4, 2021 at 9:05 AM yaswanth kumar <[email protected]> wrote:

> Can I get some traction on the question??
>
>
> On Wed, Jun 2, 2021 at 4:27 PM yaswanth kumar <[email protected]>
> wrote:
>
> > I have a field of type solr.TextField without any
> > patternreplacecharacterfactory. So now I have docs that have field say
> > example R-1234, and so what I do this as fq=(textfield:R\-123) it's not
> > returning any documents. Am I missing something here interms of escaping
> > character "-" ??
> >
> > Solr: 8.2.0 is the version that I am using.
> >
> > --
> > Thanks & Regards,
> > Yaswanth Kumar Konathala.
> > [email protected]
> >
>
>
> --
> Thanks & Regards,
> Yaswanth Kumar Konathala.
> [email protected]
>

Reply via email to