Copied to clipboard

Flag this post as spam?

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


  • Alan Draper 19 posts 79 karma points
    May 14, 2020 @ 15:35
    Alan Draper
    1

    Examine Search Character Minimum

    Hi -- Looking at creating a search page for my new Umbraco 8 site and finding that the search returns nothing for 3 or fewer characters. I wasn't doing anything fancy, just

    Umbraco.ContentQuery.Search(this.Query, culture: string.Empty)
    

    If this.Query is 4 characters long, I get results, and for 3 characters I get 0.

    Same thing happens in the back office if I try searching for 3 characters vs 4.

    I'm sure 3-character searches must work, since this page yields results: https://umbraco.com/search/?q=umb

    Thanks for any help you can offer!

  • Colin Wiseman 10 posts 120 karma points
    Oct 19, 2020 @ 15:39
    Colin Wiseman
    0

    Did you find a solution to this? I am currently facing this same issue.

  • Alan Draper 19 posts 79 karma points
    Oct 27, 2020 @ 16:18
    Alan Draper
    0

    Nothing yet. Maybe it'll percolate up with some activity.

  • Colin Wiseman 10 posts 120 karma points
    Oct 27, 2020 @ 16:37
    Colin Wiseman
    0

    So my issue might be more to do with the Stop Words that comes with Lucene. You can't search for "AT" or "AND".

    My problem is AT is something someone might search for on my site, so I am having to looking into a custom analyser:

    https://our.umbraco.com/forum/developers/extending-umbraco/25600-Examine-case-insensitive-keyword-search#comment-95336

  • 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