Does anybody knows how to search multiple fields with Examine?
This is my code for one field , but it would be great if I could search the title as well.
var results = searcher.CreateQuery("content").NodeTypeAlias("topic").And().Field("topicBody", searchTerm).Execute();
I have a requirement, to search using Examine, when I need to search for a single document type (home) and the results should match with exactly with 2 different fields. Below is my code, but this gives results as OR operation, but I need AND.
The result should be for home document type where it should have match both fileds (contractIden-us and mFRIden-us).
Examine multiple fields search
Hi everyone.
Does anybody knows how to search multiple fields with Examine? This is my code for one field , but it would be great if I could search the title as well.
Thank you
Hi, Raluca, you can search in multiple field using the following query:
I hope that this helps Mila
Brilliant. Thank you :)
Hello All,
I have a requirement, to search using Examine, when I need to search for a single document type (home) and the results should match with exactly with 2 different fields. Below is my code, but this gives results as OR operation, but I need AND.
The result should be for home document type where it should have match both fileds (contractIden-us and mFRIden-us).
Appreciate the help here, what's wrong with above query.
Regards,
Gurumurthy JV
is working on a reply...