Copied to clipboard

Flag this post as spam?

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


  • Nilesh Macwan 9 posts 79 karma points
    May 18, 2017 @ 05:32
    Nilesh Macwan
    0

    Lucene Search Error with special characters

    I'm not sure if this can be fixed but the phrase “AT&T” does not return any search results.

    & is converted with & on the database and we are unable to search "AT&T".

    Kindly guide.

  • Manish 373 posts 932 karma points
    May 18, 2017 @ 08:42
    Manish
    0

    Hi Nilesh

    This may help you out

    Here

  • Nilesh Macwan 9 posts 79 karma points
    May 18, 2017 @ 09:05
    Nilesh Macwan
    0

    Thanks Manish for the reply.

    can you please guide me how we can search "&"?

    On search box, the user will search for "AT&T", how we can search word containing "&"?

    Basically, "&" get converted to "& a m p ;", and the reason we are unable to search "AT&T".

  • Manish 373 posts 932 karma points
    May 18, 2017 @ 09:25
  • Nilesh Macwan 9 posts 79 karma points
    May 18, 2017 @ 09:46
    Nilesh Macwan
    0

    Manish,

    But this won't search for "AT&T", if we disable character "&", then search criteria will not match the input search string.

    If user input on search input box: "AT&T". where on DB, UMBRACO stores "&" yo "& a m p ;" [ without space ].

  • Manish 373 posts 932 karma points
    May 18, 2017 @ 10:00
    Manish
    0

    @nilesh

    Are you using Standard analyser in config?

  • Nilesh Macwan 9 posts 79 karma points
    May 18, 2017 @ 10:32
    Nilesh Macwan
    0

    Yes Manish, Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net

Please Sign in or register to post replies

Write your reply to:

Draft