--
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.
Hibernating Rhinos Ltd
Tal Weiss l Core Team Developer l Mobile:+972-54-802-4849
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811l Skype: talweiss1982
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
Can you please share the client code that generated this query ?
On Wed, Jul 19, 2017 at 4:30 PM, Jochen Jonckheere <jochen.j...@jxk.be> wrote:
Hello,After upgrading from RavenDB 3.0 to RavenDB 3.5 I have an unit/integration test that is failing.It's a very simple test that does a search on a text field using a StartsWith. The term I use to search contains a -, and that character is causing the problem. It looks like that the RavenDB.Client is escaping the - with a \ and that the server doesn't remove the \ again.Here's the failing request:Receive Request # 165: GET - Andes - http://localhost:8080/databases/Andes/indexes/Institution/ByVariousFields?&query=Query:"CAB %5C-INFI%5C-LARDINOIS*"&pageSize=10&sort=Denomination&SortHint-Denomination=String&resultsTransformer=SimpleInstitutionModelTransformerRequest # 165: GET - 2 ms - Andes - 200 - http://localhost:8080/databases/Andes/indexes/Institution/ByVariousFields?&query=Query:"CAB %5C-INFI%5C-LARDINOIS*"&pageSize=10&sort=Denomination&SortHint-Denomination=String&resultsTransformer=SimpleInstitutionModelTransformerQuery: Query:"CAB \-INFI\-LARDINOIS*"Time: 1 msIndex: Institution/ByVariousFieldsResults: 0 returned out of 0 total.Timing:If I use the Studio, the \ are not added and the request returns the correct number of results:Receive Request # 164: GET - Andes - http://localhost:8080/databases/Andes/indexes/Institution/ByVariousFields?query=Query: "CAB -INFI-LARDINOIS*"&start=0&pageSize=20Request # 164: GET - 3 ms - Andes - 304 - http://localhost:8080/databases/Andes/indexes/Institution/ByVariousFields?query=Query: "CAB -INFI-LARDINOIS*"&start=0&pageSize=20Query: Query: "CAB -INFI-LARDINOIS*"Time: 0 msCan this been taking care of?Kind regards,Jochen Jonckheere
--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Hello,
We have recreated the test below and it works.
However, if we place a space in the name the person can no longer be found.
This is the request:
Receive Request # 111: GET - Northwind - http://localhost:8080/databases/Northwind/indexes/dynamic/People?&query=Name:"%5C-The%5C-%5C-asher %5C-Person*"&pageSize=128
Request # 111: GET - 5 ms - Northwind - 200 - http://localhost:8080/databases/Northwind/indexes/dynamic/People?&query=Name:"%5C-The%5C-%C-Dasher %5C-Person*"&pageSize=128
Query: Name:"\-The\-\-Dasher \-Person*"
Time: 4 ms
Index: PeopleByName
Results: 0 returned out of 0 total.
Timing:
And the changed code:
using (var session = store.OpenSession())
{
session.Store(new Person { Name = "-The--Dasher -Person", Age = 34 });
session.SaveChanges();
WaitForIndexing(store);
var res = session.Query<Person>().Where(m => m.Name.StartsWith("-The--Dasher -Person")).ToList();
Assert.AreEqual(res.Count, 1);
}
Kind regards,
Jonas Vandamme
You're receiving this message because you're a member of the Condor group. If you don't want to receive any messages or events from this group, stop following it in your inbox.