I have an index that is returning results in raven3 but after upgrading to raven 4 the 'same' query does not produce any results:
(apologies in advance for all the screenshots but it really is the easiest way to show this imho)
The field in question is analyzed and appears to have been ported to raven4 correctly:
Raven3.0
Raven 4.0 RC2
When I query this (either in code or from the studio) i get results in raven3.0:
Now the 'same' query in Raven4.0 (using the same code as b4 or with studio)
No results. I've tried also
from index 'Property/ByAddress'
where search(Address, "Napier Street Nedlands WA 6009")
however this seems to return *many* more results and they look nothing like the results from raven3.0
Can you please help what is the syntax to make the query work like it did in 3.0 ?
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Can you send us an export with some sample data so we can look at this?
Now the 'same' query in Raven4.0 (using the same code as b4 or with studio)
No results. I've tried also
from index 'Property/ByAddress'
where search(Address, "Napier Street Nedlands WA 6009")
however this seems to return *many* more results and they look nothing like the results from raven3.0
Can you please help what is the syntax to make the query work like it did in 3.0 ?
--
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.
from index 'Property/ByAddress'
where lucene(Address, "Napier Street Nedlands WA 6009")
from index 'Property/ByAddress'
where Address="40 Napier Street Nedlands WA 6009"
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
query = query.WhereEquals("Address", "someval");
query = query.Search(indexField, sanitizedSearchTerm.SearchTerm, SearchOperator.And);
Here is what you need to do: