Copied to clipboard

Flag this post as spam?

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


  • k 256 posts 654 karma points
    May 31, 2017 @ 07:46
    k
    0

    Lucene search

    Hello,

    I am using lucene search and I am having trouble to find values between :

    100 to 1000 inclusive or 0 to 1500 inclusive.

    When searching between 100 to 900 it works fine.

    Can someone please help me find a solution.

    Thanks in advance.

    kusum

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 31, 2017 @ 08:14
    Ismail Mayat
    0

    Kusum,

    My lucene i am assuming you mean examine? Either way see https://our.umbraco.org/forum/using/ui-questions/16888-Examine-Search-Range-Values

    Regards

    Ismail

  • k 256 posts 654 karma points
    May 31, 2017 @ 10:28
    k
    0

    Hello Ismail,

    Thank you for your reply. I did try the above but when I search for values between 100 to 1800, I get 100, 125, 1800 but not 200 300 etc.

    Thank you for your help.

    kusum

  • John C Scott 473 posts 1183 karma points
    May 31, 2017 @ 10:57
    John C Scott
    0

    it looks like maybe it's performing an alphabetical search and not a numerical one

    numerically 200 & 300 are between 100 and 1500, however alphabetically they would not be

    i wonder how you would make it look at it as a number and not a character string - i don't know the answer i'm afraid

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 31, 2017 @ 11:09
    Ismail Mayat
    0

    can you open the index using luke and send screen shot of the data that is stored. I am just interested in the range values you are searching on.

    You can luke from https://code.google.com/archive/p/luke/downloads you need v 3.5.0 you will need to have java installed on your machine.

  • k 256 posts 654 karma points
    May 31, 2017 @ 12:31
    k
    0

    Indeed John.

    Thanks for replying :)

  • k 256 posts 654 karma points
    May 31, 2017 @ 12:33
    k
    0

    Hello Ismail,

    Thanks for replying I will install Luke and get back to you.

  • k 256 posts 654 karma points
    Jun 01, 2017 @ 10:42
    k
    0

    Hello Ismail,

    I have downloaded Java and Luke . First time i am using Luke. Can you please refer me to any doc on how to use it.

    Thanks in advance.

    kusum

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jun 01, 2017 @ 14:59
    Ismail Mayat
    0

    Kusum,

    See

    https://lingpipe-blog.com/2012/07/24/using-luke-the-lucene-index-browser-to-develop-search-queries/

    https://our.umbraco.org/forum/developers/extending-umbraco/11819-Examine-range-query-numeric

    First link has info on how to use luke second link is how to fix the issue you are having. You need to pad out your values

  • 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.

    Continue discussion

Please Sign in or register to post replies