Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
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.
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
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.
Indeed John.
Thanks for replying :)
Thanks for replying I will install Luke and get back to you.
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.
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
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
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
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.
Indeed John.
Thanks for replying :)
Hello Ismail,
Thanks for replying I will install Luke and get back to you.
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
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
is working on a reply...