Re: [RavenDB] RavenDB - searching for special characters on fileds with multiple properties

28 views
Skip to first unread message

Oren Eini (Ayende Rahien)

unread,
Aug 17, 2017, 8:04:29 AM8/17/17
to ravendb
What does your index and query looks like?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Thu, Aug 17, 2017 at 12:06 PM, Jurca Denisa <jurca.deni...@gmail.com> wrote:
I want to be able  to search for fields who contains special characters. I`m using default analyzer for indexing.

If I have something like this (Example 1)

    "TestValues": [  
        {
            "TestValueType": "TestValue",
            "TestValue": "Test@#Value"
        }
    ]

And if I`m searching for Test@#Value everything works fine

But if I have something like this (Example 2)

    "TestValues": [
        {
            "TestValueType": "TestValue2",
            "TestValue": "Test@#Value2"
        },
        {
            "TestValueType": "TestValue",
            "TestValue": "Test@#Value"
        }
    ]

And If I search for "Test@#Value", I`m not receiving anything.

Or something like this: (Example 3)

    "TestValues": [
        {
            "TestValueType": "TestValue2",
            "TestValue": "TestValue2"
        },
        {
            "TestValueType": "TestValue",
            "TestValue": "TestValue"
        }
    ]

And If I search for "TestValue", I`m still not receiving anything.

Instead, if I`m using Index.Analyzed for the third exemple, and I search for "TestValue", I`m receiving what I should receive. But using the Index.Analyzed I`m not able to search for special characters

Any idea what should I do?

Thanks! 

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages