Hey

It might be possible  *allText* does not consider them *()* as text. You
might have to try something else (possibly String)

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Tue, Oct 19, 2021 at 2:54 AM Casteel, Kayla Lynne
<kayla.cast...@jacobs.com.invalid> wrote:

> Hello all,
>
> I have been going mad trying to get SOLR to search for parentheses as
> literals. For example, "(Figure 5)". I've tried entering it in the fq field
> as:
> allText:\(Figure 5\)
>
> (where allText is a facet). SOLR interprets this in the response as
>
> "fq":"allText:\\(Figure 5\\)"
>
> and it ends up finding text like "In Figure 5" with no parentheses. I
> assume this is because it is escaping the escape characters.
>
>
> I've tried escaping, I've tried URL encoding them, I've tried banging my
> head on the desk. I can't get solr to understand that this should be an
> exact match and that the parentheses are both literal and mandatory.
>
> In the wiki it even gives an example of escaping parentheses as part of
> the "Escaping Special Characters" section but it doesn't seem to work in my
> case.
>
> Has anyone else experienced this issue? Is there something I'm doing wrong?
>
>
> Thank you,
>
> Kayla Casteel
>
> ________________________________
>
> NOTICE - This communication may contain confidential and privileged
> information that is for the sole use of the intended recipient. Any
> viewing, copying or distribution of, or reliance on this message by
> unintended recipients is strictly prohibited. If you have received this
> message in error, please notify us immediately by replying to the message
> and deleting it from your computer.
>

Reply via email to