Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Feb 09, 2011 @ 12:36
    Jonas Eriksson
    0

    Problems with Examine and caseing

    We're experiencing strange problems with content and are using Luke to help us find the reason. If a word is cased ie"Djärvt" Examine does not find it unless we add a trailing *.

    We have an article with the Header "Djärvt och spännande" but the follwoing search does not give us the article:

    Header:Djärvt (no results)

    However - if we add a trailing * we get the article fine:

    Header:Djärvt*
    Header:Djärv*

    Searching for the other words also works fine:

    Header:spännande
    Header:och

    For a search for another article with the Header "Domotex mässa i Hannover", the following returns nothing:

    Header:Domotex (no results)
    Header:Hannover (no results)

    however this searches returns the article

    Header:Domotex*
    Header:Hannover*
    Header:mässa

    Any ideas?

    Thanks

  • Tom Maton 387 posts 660 karma points
    Feb 09, 2011 @ 16:10
    Tom Maton
    0

    Hi Jonas,

    Have you tried using the fuzzy() method on the text you searching?

    Example here - bottom of the page

    or this post http://our.umbraco.org/forum/developers/extending-umbraco/14451-Examine-Search-NOT-EXACT-Word

    Tom

     

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Feb 09, 2011 @ 21:57
    Aaron Powell
    0

    If you're using an english analyzere with non english caracters you'll probably have things going a bit funky. You should have a look for an analyzer in your desired language

  • Jonas Eriksson 930 posts 1825 karma points
    Feb 10, 2011 @ 03:38
    Jonas Eriksson
    0

    Hi Tom and Slace, thanks for your answers

    it was simply the analyzer that was set to WhitespaceAnalyzer for the indexer, and hence using another in Luke got me strange results. I changed back to StandardAnalyzer and it works good now (I think). StandardAnalyzer "should cover most european languages", right? (http://our.umbraco.org/forum/developers/extending-umbraco/2223-Lucene-search-and-special-characters- )

    regards

    Jonas

Please Sign in or register to post replies

Write your reply to:

Draft