Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Domenico Neri 10 posts 30 karma points
    Jul 22, 2011 @ 18:03
    Domenico Neri
    0

    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.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 23, 2011 @ 11:46
    Dirk De Grave
    0

    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

     

     

     

  • Domenico Neri 10 posts 30 karma points
    Jul 25, 2011 @ 10:20
    Domenico Neri
    0

    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.

  • 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.

Please Sign in or register to post replies