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 56 posts 139 karma points
    May 14, 2020 @ 15:35
    Alan Draper
    2

    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 52 posts 194 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 56 posts 139 karma points
    Oct 27, 2020 @ 16:18
    Alan Draper
    0

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

  • Colin Wiseman 52 posts 194 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

  • Jesse Andrews 191 posts 716 karma points c-trib
    May 20, 2021 @ 19:56
    Jesse Andrews
    0

    I am running into this problem as well. In my case, I'm trying to do an examine search by state codes ("WA," "FL," etc). Any luck with resolving this issue?

Please Sign in or register to post replies

Write your reply to:

Draft