Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi i got the examine search working, really impressive, but i have following problem:
When i use a OR it never hits on the second part
float y = 0.1f;var query = sc.Field("Postcode", searchtext.Text.Fuzzy(y)).Or().Field("Adres", searchtext.Text.Fuzzy(y));
Can someone explain me what i am doing wrong?
Just found out that i had to set the BooleanOperation to Or
var sc = ExamineManager.Instance.CreateSearchCriteria(IndexType.Content,Examine.SearchCriteria.BooleanOperation.Or);
Correct, you need to specify that the default operation is a Boolean of Or (Default is And).
You can view the Lucene query by doing a ToString on your ISearchCriteria object
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Examine search, problem with OR
Hi i got the examine search working, really impressive, but i have following problem:
When i use a OR it never hits on the second part
float y = 0.1f;
var query = sc.Field("Postcode", searchtext.Text.Fuzzy(y)).Or().Field("Adres", searchtext.Text.Fuzzy(y));
Can someone explain me what i am doing wrong?
Just found out that i had to set the BooleanOperation to Or
var sc = ExamineManager.Instance.CreateSearchCriteria(IndexType.Content,Examine.SearchCriteria.BooleanOperation.Or);
Correct, you need to specify that the default operation is a Boolean of Or (Default is And).
You can view the Lucene query by doing a ToString on your ISearchCriteria object
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.