, 2004 8:06 PM
To: Lucene Users List
Subject: RE: Range Query
Karthik,
It is all spelled out in a Lucene HowTo here:
http://wiki.apache.org/jakarta-lucene/SearchNumericalFields
Have fun with it,
Chuck
-Original Message-
From: Karthik N S [mailto:[EMAIL PROTECTED]
Sent: Wednesday
On Oct 21, 2004, at 3:32 AM, Karthik N S wrote:
I will have to Re - Index all my 1 Million subindexes with the 'Price
FieldType' padded of to standard no of '0' s.
So can use the code modified while Searching to find the range of
Query...
[ Is there any other way to handle this Only
for
the same ]
. :)
Thx in advance
-Original Message-
From: Jonathan Hager [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:31 AM
To: Lucene Users List
Subject: Re: Range Query
That is exactly right. It is searching the ASCII. To solve it I pad
my price using a method
; Jonathan Hager
Subject: RE: Range Query
Hi
Jonathan
When searching I also pad the query term ???
When Exactly are u handling this [ using During Indexing Process
Also or
while Search on Process Only ]
Can u be Please be specific
Range queries use a lexicographic (dictionary) order. So, assuming all
your values are positive, you need to ensure that the integer part of
each number has a fixed number of digits (pad with leading 0's). The
fractional part should be fine, although 1.0 will follow 1. If you have
negative
That is exactly right. It is searching the ASCII. To solve it I pad
my price using a method like this:
/**
* Pads the Price so that all prices are the same number of characters and
* can be compared lexigraphically.
* @param price
* @return
*/
public static String
On Friday 17 September 2004 19:37, Derek Baker wrote:
However, if I create a range query that I would expect to find that
value, I get nothing. The range query string is: adzer:[# TO 0] (minus
the quotes). As far as I can tell, this query string should find any
value in the adzer fields that
Thanks for your reply.
If I do it manually:
Term term1 = new Term(adzer, #);
Term term2 = new Term(adzer, 0);
Query myQuery = new RangeQuery(term1, term2, true);
hits = searcher.search(myQuery);
I still get nothing. If I make the first term in the new RangeQuery call
null:
Query
Ah, but if I escape the 0 in the term constructor:
Term term2 = new Term(adzer, \\0);
It works. And then it works for a dash as well. Seems that to pass a
search string to a queryParser, the 0 has to be escaped doubly:
searchString = adzer: [# TO 0];
Just escaping with a double
, August 26, 2004 12:59 PM
To: Lucene Users List
Subject: Re: Range query problem
On Thursday 26 August 2004 11:02, Alex Kiselevski wrote:
I have a strange problem with range query PERIOD:[1 TO 9] It works
only if the second parameter is equals or less than 9 If it's greater
than 9
On Thursday 26 August 2004 11:02, Alex Kiselevski wrote:
I have a strange problem with range query PERIOD:[1 TO 9]
It works only if the second parameter is equals or less than 9
If it's greater than 9 , it finds no documents
You have to store your numbers so that they will appear in the right
Thanks, I'll try it
-Original Message-
From: Daniel Naber [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 12:59 PM
To: Lucene Users List
Subject: Re: Range query problem
On Thursday 26 August 2004 11:02, Alex Kiselevski wrote:
I have a strange problem with range query
On Thursday 03 June 2004 07:10, Karthik N S wrote:
Hey
Ype the Query of range
+button +shirt +filename:[b10181_p100 TO b10181_p200]
did not work for me but on other way around
+(button OR shirt) +filename:[b10181_p100 TO b10181_p200]
resulted to me in 2 hits with either one
On Jun 2, 2004, at 6:20 AM, Karthik N S wrote:
Hey Ype/Erick
If you're gonna ask for help, the least ya could do is spell my name
correctly :)
I still have 3 small Questions.
1)While creating the Range Query Is it possible for Lucene to do
somthing
similar..
+(button AND shirt)
On Wednesday 02 June 2004 14:46, Erik Hatcher wrote:
On Jun 2, 2004, at 6:20 AM, Karthik N S wrote:
...
I still have 3 small Questions.
1)While creating the Range Query Is it possible for Lucene to do
somthing
similar..
+(button AND shirt) +filename:[b10181_p100 TO b10181_p200]
On Jun 1, 2004, at 8:10 AM, Karthik N S wrote:
Hey Ype/Erick
Apologies please
I sent u guys some code as per mail
did u recieve it or shall i re send them.
I did not send it. Please just copy/paste it into an e-mail to the
list.
Erik
Karthik,
On Monday 31 May 2004 06:12, Karthik N S wrote:
Hey Ype
...
My Question now is, If I want to Use Range Query to get search hits
between
fileName B10181_P702 and B10181_P355 only Instead of all the 67 hits
,
In this case there is no need to override range query, just use
On Monday 31 May 2004 11:09, Karthik N S wrote:
...
I re indexed my folder 10181 [Seem's to be corrupted]
Was the index writer closed?
Now I am getting the hits as
D:\JAVA\lucene\src\demojava org.lucene.src.indexer.search.SearchFiles
Search Keyword : +button+filename:[B10181_P702 TO
, 2004 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Range Query Sombody HELP please
On Monday 31 May 2004 11:09, Karthik N S wrote:
...
I re indexed my folder 10181 [Seem's to be corrupted]
Was the index writer closed?
Now I am getting the hits as
D:\JAVA\lucene\src\demojava
Message-
From: Ype Kingma [mailto:[EMAIL PROTECTED]
Sent: Monday, May 31, 2004 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Range Query Sombody HELP please
On Monday 31 May 2004 11:09, Karthik N S wrote:
...
I re indexed my folder 10181 [Seem's to be corrupted]
Was the index writer closed?
Now I am
Karthik,
On Monday 31 May 2004 13:47, Karthik N S wrote:
Hey Ype...
1) I switched Off the Multi search Senerio.
2) Changing the Field type from Text to Keyword
will fail When I search for the the Field type filename
so,I still maintained it to be Text
Just make sure the file name
-Original Message-
From: Ype Kingma [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Range Query Sombody HELP please
On Thursday 27 May 2004 09:37, Karthik N S wrote:
Hi
Lucene -Developer My main intention was
Search for an word hit
On May 28, 2004, at 4:54 AM, Karthik N S wrote:
1) I have a unique Field [ called filename ] which is indexed of type
Text.
You probably do not want to use Field.Text for a filename. Use
Field.Keyword instead.
2) The indexer complete indexes for about 5000 html files sucessfully
.
Now use
On Friday 28 May 2004 10:54, Karthik N S wrote:
Hey ype
Thx for the advice but still I need to get the exact situation working ,
1) I have a unique Field [ called filename ] which is indexed of type Text.
It accepts the name of the HTML files as the indexing parameter ,
Also there
On Thursday 27 May 2004 07:00, Karthik N S wrote:
Hi
Lucene developers
Is it possible to do Search and retrieve relevant information on the
Indexed Document
within in specific range settings which may be similar to an
Query in SQL = select * from BOOKSHELF where book1 between 100
.
or
select * from BOOKSHELF where book1 between 100 and 200.
with regards
Karthik
-Original Message-
From: Ype Kingma [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Range Query Sombody HELP please
On Thursday 27 May 2004 07
On May 27, 2004, at 3:37 AM, Karthik N S wrote:
Hi
Lucene -Developer My main intention was
Search for an word hit in a Unique Field between ranges say
book100 - book 200 indexed numbers
It's something like creating a SUBSEARCH with in the SEARCHINDEX.
This is similar to a SQL =
Karthik, namaste!
I seem to be getting multiple copies of your email.
I received 4 copies of this email.
Could you please limit things to 1 message per subject?
I get hundreds of messages every day as is. :(
Thank you,
Otis
--- Karthik N S [EMAIL PROTECTED] wrote:
Hi
Lucene developers
On Thursday 27 May 2004 09:37, Karthik N S wrote:
Hi
Lucene -Developer My main intention was
Search for an word hit in a Unique Field between ranges say
book100 - book 200 indexed numbers
It's something like creating a SUBSEARCH with in the SEARCHINDEX.
You don't need to
27, 2004 11:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Range Query Sombody HELP please
On Thursday 27 May 2004 09:37, Karthik N S wrote:
Hi
Lucene -Developer My main intention was
Search for an word hit in a Unique Field between ranges say
book100 - book 200 indexed numbers
It's
30 matches
Mail list logo