Copied to clipboard

Flag this post as spam?

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


  • Kristoffer Eriksen 169 posts 388 karma points
    Dec 20, 2011 @ 10:58
    Kristoffer Eriksen
    0

    Examine Get all terms in specific field

    Is it possible to get all values with a specific fieldtype from Examine ?

    Some sort of wildcardsearch.

    Ex. Get all terms from Lucene index, with Fieldname "title"

  • Kristoffer Eriksen 169 posts 388 karma points
    Dec 20, 2011 @ 13:23
    Kristoffer Eriksen
    0

    Finally found a solution.

    Got inspired by http://our.umbraco.org/forum/developers/api-questions/12168-Examine-Leading-wildcards?p=1

    and simple

                ISearchCriteria searchCriteria = Searcher.CreateSearchCriteria();
                searchCriteria.RawQuery("title:*");
                ISearchResults searchResults = Searcher.Search(searchCriteria);

     

    Works like a charm

  • 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