Looking for documentation: there should be quite some docs on Examine and using Examine in umbraco on the Codeplex home page. Docs should give you a good starting point to do your own search implementation.
If you do run into some issues, please report and we'll be there to help you.
Examine Search with multiple fields
Hello,
I made a form to perform a search, using Examine API.
My form have this fields:
text phrase (string)
AutorId (int)
DateFrom - DateTo (datetime)
I need to compose a query to find document with these field.
All the field must be optional.
Need to find only 2 NodeTypeAlias.
Looking for documentation, without success.
Thanks, Domenico.
Hi Domenico,
Looking for documentation: there should be quite some docs on Examine and using Examine in umbraco on the Codeplex home page. Docs should give you a good starting point to do your own search implementation.
If you do run into some issues, please report and we'll be there to help you.
Hope this helps.
Regards,
/Dirk
The problems I need to resolve are:
- Retrieve all the document in the index (perform a search without any search key)
- Perform a search with date range:
I did it:
criteria.Range("dataPubblicazione", dateFrom.Value, dateTo.Value)
but doesn't work. What is the date format it need?
Retrive only the documents of NodeTypeAlias I want. If I try to filter with:
criteria
.NodeTypeAlias("esaArticolo")
.Or()
.NodeTypeAlias("maArticolo")
.Compile();
It returns me only the document of first one nodetypealias.
Can you help me?
Thanks.
is working on a reply...