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 185 posts 465 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 185 posts 465 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

Please Sign in or register to post replies

Write your reply to:

Draft