Copied to clipboard

Flag this post as spam?

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


  • Andreas Emtinger 23 posts 185 karma points
    Nov 10, 2016 @ 13:00
    Andreas Emtinger
    0

    Examine excluding words?

    Hi,

    Why cant I find the word "of" in my search?

    Example 1:

    nodeName: King of Scotland

    Examine:

    +nodeName:king* AND +nodeName:of*
    
    +nodeName:king* AND +nodeName:*of* 
    
    nodeName:of*
    
    nodeName:*of*
    

    No one of the above will result with any hits

    Example 2:

    nodeName: Hellofefe

    Examine:

    nodeName:*of*
    

    ONE RESULT!

    WHY? tearing my hair out

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 10, 2016 @ 15:30
    Sebastiaan Janssen
    100

    Because the StandardAnalyzer removes English stopwords :-)

    Read more here: https://our.umbraco.org/forum/developers/extending-umbraco/26320-Examine-Analyser-Stop-words-versus-Case-Sensitive

  • Andreas Emtinger 23 posts 185 karma points
    Nov 10, 2016 @ 21:16
    Andreas Emtinger
    0

    Thanks!

    public class MyAnalyzer : StandardAnalyzer
        {
            public MyAnalyzer()
                : base(Lucene.Net.Util.Version.LUCENE_29, new Hashtable())
            {    }
        }
    

    But how about:

    Example 3

    nodeName: Home & Things

    Examine:

    +nodeName:Home* +nodeName:&*
    

    No result

Please Sign in or register to post replies

Write your reply to:

Draft