Copied to clipboard

Flag this post as spam?

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


  • Jin Botol 134 posts 287 karma points
    Jan 08, 2019 @ 07:23
    Jin Botol
    0

    Examine Search Autocomplete with multiple terms

    Hi All,

    I've added a autocomplete search in Examine, but I'm stuck when I search a multiple terms, like (argyle 15)

    Here is my Examine Query:

    criteria.NodeTypeAlias("Product").And().Field("title", searchTerm.MultipleCharacterWildcard()).Compile();
    
    /// here is the query
    { SearchIndexType: , LuceneQuery: +__NodeTypeAlias:product +title:argyle 15* }
    

    As what I have in LuceneQuery

    To perform a multiple character wildcard search use the asterisk '*' symbol.

    And I guess my query is right, because it has asterisk on the last part?

    Am I missing something? Can anyone help me, how can I achieve this multiple term search.

    Cheers

    Jin

Please Sign in or register to post replies

Write your reply to:

Draft