Copied to clipboard

Flag this post as spam?

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


  • rimi 2 posts 20 karma points
    May 11, 2009 @ 10:20
    rimi
    0

    Lucene query syntax

    Hi ,I am using lucene search engine in my applicaiton.I am facing trouble to search a particular word like "AWT-T" . I want only match data with this particular word "AWT-T" should be shown. But right now all the data matching with AWT is also showing.


    Please help me.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 11, 2009 @ 10:56
    Dirk De Grave
    0

    Hi,

    I'd check the lucene.net documentation for that. Don't see any umbraco relevance atm, but you could proof me wrong of course.

    Cheers,
    /Dirk

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 11, 2009 @ 12:55
    Ismail Mayat
    0

    Rimi,

    Download luke and try syntax documentation here

    Regards

    Ismail

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 11, 2009 @ 14:36
    Douglas Robar
    0

    The simple umbSearch doesn't handle dashes very well. The dash in the search term forces lucene to use a different search algorithm, which causes peculiar results sometimes. There are a couple ways to handle this but they all require some code changes to the search tool to get the lucene behavior you want. I don't think there is a simple way to resolve it without a code change; though if you put the search term in single or double quotes you might get what you're looking for.

    Try searching for:
    AWT-T
    'AWT-T'
    "AWT-T"

    Do any of those return what you want?

    cheers,
    doug.

  • rimi 2 posts 20 karma points
    May 12, 2009 @ 10:08
    rimi
    0

    No Drobar,It's not showing the right data.It's showing the AWT related data also.I want only AWT-T data.Please help me.

  • 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