RE: Sorting in Lucene

2004-12-08 Thread Ramon Aseniero
Hi Erik,

I am not getting any error. 

Yes I am indexing multiple keyword fields by the same name in a single
document. Does that works with Lucene?

Thanks,
Ramon

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 07, 2004 5:13 PM
To: Lucene Users List
Subject: Re: Sorting in Lucene

Ramon,

More details would be most helpful in being able to assist.  You said 
you cannot sort - but you did not tell us what error you're getting.  
Are you indexing multiple keyword fields by the same name for a single 
document?

As for searching - depending on the type of text you're searching for, 
the analyzer may be making it difficult/impossible to search for.  
QueryParser doesn't know about keyword fields.

Erik

On Dec 7, 2004, at 7:13 PM, Ramon Aseniero wrote:

 Hi Chuck,

 Yes I tried to search with the exact string stored on the index but I 
 don't
 get a match. I tried the search using LIMO and LUKE.

 It seems like untokenized field are not searchable.

 Thanks,
 Ramon

 -Original Message-
 From: Chuck Williams [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 07, 2004 4:04 PM
 To: Lucene Users List
 Subject: RE: Sorting in Lucene

 Since it's untokenized, are you searching with the exact string stored
 in the field?

 Chuck

 -Original Message-
 From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 07, 2004 3:29 PM
 To: 'Lucene Users List'; 'Chris Fraschetti'
 Subject: RE: Sorting in Lucene

 I also tried searching the said field on LIMO and I don't get a
 match.

 Thanks,
 Ramon

 -Original Message-
 From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 07, 2004 3:20 PM
 To: 'Lucene Users List'; 'Chris Fraschetti'
 Subject: RE: Sorting in Lucene

 Hi,

 I use LIMO to look into my index. Limo tells me that the field is
 untokenized but is indexed.

 Is it possible to search on untokenized field?

 Thanks,
 Ramon

 -Original Message-
 From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 07, 2004 3:14 PM
 To: Lucene Users List
 Subject: Re: Sorting in Lucene

 I would try 'luke' to look at your index and use it's search
 functionality to make sure it's now your code that is the problem,
 as
 well as to ensure  your document is appearing in the index as you
 intend it. It's been a lifesaver for me.

 http://www.getopt.org/luke/


 On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
 [EMAIL PROTECTED] wrote:
 Hi All,

 Any idea why a Keyword field is not searchable? On my index I have
 a
 field
 of type Keyword but I could not somehow search on the field.

 Thanks in advance.

 Ramon

 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
 12/7/2004




 --
 ___
 Chris Fraschetti
 e [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 --
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004


 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 --
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004


 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -- 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004


 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 

-- 
No virus found in this outgoing message

Re: Sorting in Lucene

2004-12-08 Thread Erik Hatcher
On Dec 8, 2004, at 5:02 PM, Ramon Aseniero wrote:
Yes I am indexing multiple keyword fields by the same name in a single
document. Does that works with Lucene?
No - logically it doesn't make sense.  How would Lucene determine which 
of those field values to sort by?

You need a single field value to sort by.  I think you should get an 
error when sorting by a field with duplicate values though.

Again, it would be most helpful if you could provide code that 
demonstrates what you're doing during indexing and searching 
specifically related to the sorting issue.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sorting in Lucene

2004-12-07 Thread Chris Fraschetti
I would try 'luke' to look at your index and use it's search
functionality to make sure it's now your code that is the problem, as
well as to ensure  your document is appearing in the index as you
intend it. It's been a lifesaver for me.

http://www.getopt.org/luke/


On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
[EMAIL PROTECTED] wrote:
 Hi All,
 
 Any idea why a Keyword field is not searchable? On my index I have a field
 of type Keyword but I could not somehow search on the field.
 
 Thanks in advance.
 
 Ramon
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 
 


-- 
___
Chris Fraschetti
e [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene

2004-12-07 Thread Ramon Aseniero
Hi,

I use LIMO to look into my index. Limo tells me that the field is
untokenized but is indexed. 

Is it possible to search on untokenized field?

Thanks,
Ramon

-Original Message-
From: Chris Fraschetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 07, 2004 3:14 PM
To: Lucene Users List
Subject: Re: Sorting in Lucene

I would try 'luke' to look at your index and use it's search
functionality to make sure it's now your code that is the problem, as
well as to ensure  your document is appearing in the index as you
intend it. It's been a lifesaver for me.

http://www.getopt.org/luke/


On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
[EMAIL PROTECTED] wrote:
 Hi All,
 
 Any idea why a Keyword field is not searchable? On my index I have a field
 of type Keyword but I could not somehow search on the field.
 
 Thanks in advance.
 
 Ramon
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 
 


-- 
___
Chris Fraschetti
e [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene

2004-12-07 Thread Ramon Aseniero
I also tried searching the said field on LIMO and I dont get a match.

Thanks,
Ramon

-Original Message-
From: Ramon Aseniero [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 07, 2004 3:20 PM
To: 'Lucene Users List'; 'Chris Fraschetti'
Subject: RE: Sorting in Lucene

Hi,

I use LIMO to look into my index. Limo tells me that the field is
untokenized but is indexed. 

Is it possible to search on untokenized field?

Thanks,
Ramon

-Original Message-
From: Chris Fraschetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 07, 2004 3:14 PM
To: Lucene Users List
Subject: Re: Sorting in Lucene

I would try 'luke' to look at your index and use it's search
functionality to make sure it's now your code that is the problem, as
well as to ensure  your document is appearing in the index as you
intend it. It's been a lifesaver for me.

http://www.getopt.org/luke/


On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
[EMAIL PROTECTED] wrote:
 Hi All,
 
 Any idea why a Keyword field is not searchable? On my index I have a field
 of type Keyword but I could not somehow search on the field.
 
 Thanks in advance.
 
 Ramon
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 
 


-- 
___
Chris Fraschetti
e [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene

2004-12-07 Thread Chuck Williams
Since it's untokenized, are you searching with the exact string stored
in the field?

Chuck

   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 3:29 PM
   To: 'Lucene Users List'; 'Chris Fraschetti'
   Subject: RE: Sorting in Lucene
   
   I also tried searching the said field on LIMO and I don't get a
match.
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 3:20 PM
   To: 'Lucene Users List'; 'Chris Fraschetti'
   Subject: RE: Sorting in Lucene
   
   Hi,
   
   I use LIMO to look into my index. Limo tells me that the field is
   untokenized but is indexed.
   
   Is it possible to search on untokenized field?
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 3:14 PM
   To: Lucene Users List
   Subject: Re: Sorting in Lucene
   
   I would try 'luke' to look at your index and use it's search
   functionality to make sure it's now your code that is the problem,
as
   well as to ensure  your document is appearing in the index as you
   intend it. It's been a lifesaver for me.
   
   http://www.getopt.org/luke/
   
   
   On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
   [EMAIL PROTECTED] wrote:
Hi All,
   
Any idea why a Keyword field is not searchable? On my index I have
a
   field
of type Keyword but I could not somehow search on the field.
   
Thanks in advance.
   
Ramon
   
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004
   
   
   
   
   --
   ___
   Chris Fraschetti
   e [EMAIL PROTECTED]
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   --
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   --
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   --
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   --
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene

2004-12-07 Thread Ramon Aseniero
Hi Chuck,

Yes I tried to search with the exact string stored on the index but I don't
get a match. I tried the search using LIMO and LUKE.

It seems like untokenized field are not searchable.

Thanks,
Ramon

-Original Message-
From: Chuck Williams [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 07, 2004 4:04 PM
To: Lucene Users List
Subject: RE: Sorting in Lucene

Since it's untokenized, are you searching with the exact string stored
in the field?

Chuck

   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 3:29 PM
   To: 'Lucene Users List'; 'Chris Fraschetti'
   Subject: RE: Sorting in Lucene
   
   I also tried searching the said field on LIMO and I don't get a
match.
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 3:20 PM
   To: 'Lucene Users List'; 'Chris Fraschetti'
   Subject: RE: Sorting in Lucene
   
   Hi,
   
   I use LIMO to look into my index. Limo tells me that the field is
   untokenized but is indexed.
   
   Is it possible to search on untokenized field?
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 3:14 PM
   To: Lucene Users List
   Subject: Re: Sorting in Lucene
   
   I would try 'luke' to look at your index and use it's search
   functionality to make sure it's now your code that is the problem,
as
   well as to ensure  your document is appearing in the index as you
   intend it. It's been a lifesaver for me.
   
   http://www.getopt.org/luke/
   
   
   On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
   [EMAIL PROTECTED] wrote:
Hi All,
   
Any idea why a Keyword field is not searchable? On my index I have
a
   field
of type Keyword but I could not somehow search on the field.
   
Thanks in advance.
   
Ramon
   
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004
   
   
   
   
   --
   ___
   Chris Fraschetti
   e [EMAIL PROTECTED]
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   --
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   --
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   --
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   --
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene

2004-12-07 Thread Chuck Williams
Ramon,

Field.Keyword is definitely searchable.  I use them.  I think I use
every combination of tokenized/untokenized, index/unindexed, and
stored/unstored.  They all work.

This seems unlikely given that you tried with Luke, but do you perhaps
have an analyzer applied to the query so that the query string is
transformed before it is applied to the index?  I'd suggest printing the
query after you parse it.  Query's have a good toString() method.

Chuck

   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 4:14 PM
   To: 'Lucene Users List'
   Subject: RE: Sorting in Lucene
   
   Hi Chuck,
   
   Yes I tried to search with the exact string stored on the index but
I
   don't
   get a match. I tried the search using LIMO and LUKE.
   
   It seems like untokenized field are not searchable.
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Chuck Williams [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 4:04 PM
   To: Lucene Users List
   Subject: RE: Sorting in Lucene
   
   Since it's untokenized, are you searching with the exact string
stored
   in the field?
   
   Chuck
   
  -Original Message-
  From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 07, 2004 3:29 PM
  To: 'Lucene Users List'; 'Chris Fraschetti'
  Subject: RE: Sorting in Lucene
 
  I also tried searching the said field on LIMO and I don't get a
   match.
 
  Thanks,
  Ramon
 
  -Original Message-
  From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 07, 2004 3:20 PM
  To: 'Lucene Users List'; 'Chris Fraschetti'
  Subject: RE: Sorting in Lucene
 
  Hi,
 
  I use LIMO to look into my index. Limo tells me that the field
is
  untokenized but is indexed.
 
  Is it possible to search on untokenized field?
 
  Thanks,
  Ramon
 
  -Original Message-
  From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 07, 2004 3:14 PM
  To: Lucene Users List
  Subject: Re: Sorting in Lucene
 
  I would try 'luke' to look at your index and use it's search
  functionality to make sure it's now your code that is the
problem,
   as
  well as to ensure  your document is appearing in the index as
you
  intend it. It's been a lifesaver for me.
 
  http://www.getopt.org/luke/
 
 
  On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
  [EMAIL PROTECTED] wrote:
   Hi All,
  
   Any idea why a Keyword field is not searchable? On my index I
have
   a
  field
   of type Keyword but I could not somehow search on the field.
  
   Thanks in advance.
  
   Ramon
  
   --
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
   12/7/2004
  
  
 
 
  --
  ___
  Chris Fraschetti
  e [EMAIL PROTECTED]
 
 
  
-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
  --
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004
 
 
  --
  No virus found in this outgoing message.
  Checked by AVG Anti-Virus.
  Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004
 
 
 
 
  
-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
  --
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004
 
 
  --
  No virus found in this outgoing message.
  Checked by AVG Anti-Virus.
  Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004
 
 
 
 
  
-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   --
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
   
   
   --
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004

Re: Sorting in Lucene

2004-12-07 Thread Erik Hatcher
Ramon,
More details would be most helpful in being able to assist.  You said 
you cannot sort - but you did not tell us what error you're getting.  
Are you indexing multiple keyword fields by the same name for a single 
document?

As for searching - depending on the type of text you're searching for, 
the analyzer may be making it difficult/impossible to search for.  
QueryParser doesn't know about keyword fields.

Erik
On Dec 7, 2004, at 7:13 PM, Ramon Aseniero wrote:
Hi Chuck,
Yes I tried to search with the exact string stored on the index but I 
don't
get a match. I tried the search using LIMO and LUKE.

It seems like untokenized field are not searchable.
Thanks,
Ramon
-Original Message-
From: Chuck Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 4:04 PM
To: Lucene Users List
Subject: RE: Sorting in Lucene
Since it's untokenized, are you searching with the exact string stored
in the field?
Chuck
-Original Message-
From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 3:29 PM
To: 'Lucene Users List'; 'Chris Fraschetti'
Subject: RE: Sorting in Lucene
I also tried searching the said field on LIMO and I don't get a
match.
Thanks,
Ramon
-Original Message-
From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 3:20 PM
To: 'Lucene Users List'; 'Chris Fraschetti'
Subject: RE: Sorting in Lucene
Hi,
I use LIMO to look into my index. Limo tells me that the field is
untokenized but is indexed.
Is it possible to search on untokenized field?
Thanks,
Ramon
-Original Message-
From: Chris Fraschetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 3:14 PM
To: Lucene Users List
Subject: Re: Sorting in Lucene
I would try 'luke' to look at your index and use it's search
functionality to make sure it's now your code that is the problem,
as
well as to ensure  your document is appearing in the index as you
intend it. It's been a lifesaver for me.
http://www.getopt.org/luke/
On Tue, 7 Dec 2004 15:02:26 -0800, Ramon Aseniero
[EMAIL PROTECTED] wrote:
Hi All,
Any idea why a Keyword field is not searchable? On my index I have
a
field
of type Keyword but I could not somehow search on the field.
Thanks in advance.
Ramon
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date:
12/7/2004


--
___
Chris Fraschetti
e [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.7 - Release Date: 12/7/2004

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sorting in Lucene.

2004-11-05 Thread Erik Hatcher
Also, more-marketingI covered sorting pretty extensively in the 
upcoming Lucene in Action book/more-marketing.  The source code for 
the book will be freely available from http://www.manning.com/hatcher2 
in the near future.  The electronic book should be available in the 
next few weeks or less and the physical book will start printing very 
shortly also.

Erik
On Nov 5, 2004, at 2:06 AM, Ramon Aseniero wrote:
Hi chuck,
Thanks a lot this is really helpful.
Thanks,
Ramon
-Original Message-
From: Chuck Williams [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 10:05 PM
To: Lucene Users List
Subject: RE: Sorting in Lucene.
Ramon,
I'm not sure where a guide or tutorial might be, but you should be able
to see how to do it from the javadoc.  Look at classes Sort, SortField,
SortComparator.  I've also included a recent message from this group
below concerning sorting with multiple fields.  FYI, a number of people
have wanted to first sort by score and secondarily by another field.
This is tricky since scores are frequently different in low-order
decimal positions.
Good luck,
Chuck
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 1:33 AM
To: Lucene Users List
Subject: Re: sorting by score and an additional field
On Nov 3, 2004, at 9:52 PM, Chris Fraschetti wrote:
Has anyone had any luck using lucene's built in sort functions to sort
first by the lucene hit score and secondarily by a Field in each
document indexed as Keyword and in integer form?
I get multiple sort fields to work, here's two examples:
 new Sort(new SortField[]{
   new SortField(category),
   SortField.FIELD_SCORE,
   new SortField(pubmonth, SortField.INT, true)
 });
new Sort(new SortField[] {SortField.FIELD_SCORE, new
SortField(category)})
Both of these, on a tiny dataset of only 10 documents, works exactly as
expected.
I can only get it to sort by one or the other... but when it does one,
it does sort correctly, but together in {score, custom_field} only the
first sort seems to apply.
Any ideas?
Are you using Lucene 1.4.2?  How did you index your integer field?  Are
you simply using the .toString() of an Integer?  Or zero padding the
field somehow?  You can use the .toString method, but you have to be
sure that the sorting code does the right parsing of it - so you might
need to specify SortField.INT as its type.  It will do automatic
detection if the type is not specified, but that assumes that the first
document it encounters parses properly, otherwise it will fall back to
using a String sort.
Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-Original Message-
From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 9:53 PM
To: 'Lucene Users List'
Subject: RE: Sorting in Lucene.
Hi Chuck,
Can you please point me to some articles or FAQ about Sorting in
Lucene?
Thanks a lot for your reply.
Thanks,
Ramon
-Original Message-
From: Chuck Williams [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 9:44 PM
To: Lucene Users List
Subject: RE: Sorting in Lucene.
Yes, by one or multiple criteria.
Chuck
-Original Message-
From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 6:21 PM
To: 'Lucene Users List'
Subject: Sorting in Lucene.
Hi All,

Does Lucene supports sorting on the search results?

Thanks in advance.
Ramon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sorting in Lucene.

2004-11-05 Thread Vic (Vinny) Cekvenich
Erik Hatcher wrote:
 more-marketingI covered sorting pretty extensively in the 
upcoming Lucene in Action book/more-marketing.  The source code for 
the book will be freely available from http://www.manning.com/hatcher2 
in the near future.  The electronic book should be available in the next 
few weeks or less and the physical book will start printing very shortly 
also.

I can't wait I went on site so I can sign up to be notified when it 
ships.

.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Sorting in Lucene.

2004-11-04 Thread Chuck Williams
Yes, by one or multiple criteria.

Chuck

   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Thursday, November 04, 2004 6:21 PM
   To: 'Lucene Users List'
   Subject: Sorting in Lucene.
   
   Hi All,
   
   
   
   Does Lucene supports sorting on the search results?
   
   
   
   Thanks in advance.
   
   Ramon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene.

2004-11-04 Thread Ramon Aseniero
Hi Chuck,

Can you please point me to some articles or FAQ about Sorting in Lucene?

Thanks a lot for your reply.

Thanks,
Ramon

-Original Message-
From: Chuck Williams [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 04, 2004 9:44 PM
To: Lucene Users List
Subject: RE: Sorting in Lucene.

Yes, by one or multiple criteria.

Chuck

   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Thursday, November 04, 2004 6:21 PM
   To: 'Lucene Users List'
   Subject: Sorting in Lucene.
   
   Hi All,
   
   
   
   Does Lucene supports sorting on the search results?
   
   
   
   Thanks in advance.
   
   Ramon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene.

2004-11-04 Thread Chuck Williams
Ramon,

I'm not sure where a guide or tutorial might be, but you should be able
to see how to do it from the javadoc.  Look at classes Sort, SortField,
SortComparator.  I've also included a recent message from this group
below concerning sorting with multiple fields.  FYI, a number of people
have wanted to first sort by score and secondarily by another field.
This is tricky since scores are frequently different in low-order
decimal positions.

Good luck,

Chuck

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 04, 2004 1:33 AM
To: Lucene Users List
Subject: Re: sorting by score and an additional field

On Nov 3, 2004, at 9:52 PM, Chris Fraschetti wrote:
 Has anyone had any luck using lucene's built in sort functions to sort
 first by the lucene hit score and secondarily by a Field in each
 document indexed as Keyword and in integer form?

I get multiple sort fields to work, here's two examples:

 new Sort(new SortField[]{
   new SortField(category),
   SortField.FIELD_SCORE,
   new SortField(pubmonth, SortField.INT, true)
 });

new Sort(new SortField[] {SortField.FIELD_SCORE, new 
SortField(category)})

Both of these, on a tiny dataset of only 10 documents, works exactly as 
expected.

 I can only get it to sort by one or the other... but when it does one,
 it does sort correctly, but together in {score, custom_field} only the
 first sort seems to apply.

 Any ideas?

Are you using Lucene 1.4.2?  How did you index your integer field?  Are 
you simply using the .toString() of an Integer?  Or zero padding the 
field somehow?  You can use the .toString method, but you have to be 
sure that the sorting code does the right parsing of it - so you might 
need to specify SortField.INT as its type.  It will do automatic 
detection if the type is not specified, but that assumes that the first 
document it encounters parses properly, otherwise it will fall back to 
using a String sort.

Erik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Thursday, November 04, 2004 9:53 PM
   To: 'Lucene Users List'
   Subject: RE: Sorting in Lucene.
   
   Hi Chuck,
   
   Can you please point me to some articles or FAQ about Sorting in
Lucene?
   
   Thanks a lot for your reply.
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Chuck Williams [mailto:[EMAIL PROTECTED]
   Sent: Thursday, November 04, 2004 9:44 PM
   To: Lucene Users List
   Subject: RE: Sorting in Lucene.
   
   Yes, by one or multiple criteria.
   
   Chuck
   
  -Original Message-
  From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 04, 2004 6:21 PM
  To: 'Lucene Users List'
  Subject: Sorting in Lucene.
 
  Hi All,
 
 
 
  Does Lucene supports sorting on the search results?
 
 
 
  Thanks in advance.
 
  Ramon
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting in Lucene.

2004-11-04 Thread Ramon Aseniero
Hi chuck,

Thanks a lot this is really helpful.

Thanks,
Ramon

-Original Message-
From: Chuck Williams [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 04, 2004 10:05 PM
To: Lucene Users List
Subject: RE: Sorting in Lucene.

Ramon,

I'm not sure where a guide or tutorial might be, but you should be able
to see how to do it from the javadoc.  Look at classes Sort, SortField,
SortComparator.  I've also included a recent message from this group
below concerning sorting with multiple fields.  FYI, a number of people
have wanted to first sort by score and secondarily by another field.
This is tricky since scores are frequently different in low-order
decimal positions.

Good luck,

Chuck

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 04, 2004 1:33 AM
To: Lucene Users List
Subject: Re: sorting by score and an additional field

On Nov 3, 2004, at 9:52 PM, Chris Fraschetti wrote:
 Has anyone had any luck using lucene's built in sort functions to sort
 first by the lucene hit score and secondarily by a Field in each
 document indexed as Keyword and in integer form?

I get multiple sort fields to work, here's two examples:

 new Sort(new SortField[]{
   new SortField(category),
   SortField.FIELD_SCORE,
   new SortField(pubmonth, SortField.INT, true)
 });

new Sort(new SortField[] {SortField.FIELD_SCORE, new 
SortField(category)})

Both of these, on a tiny dataset of only 10 documents, works exactly as 
expected.

 I can only get it to sort by one or the other... but when it does one,
 it does sort correctly, but together in {score, custom_field} only the
 first sort seems to apply.

 Any ideas?

Are you using Lucene 1.4.2?  How did you index your integer field?  Are 
you simply using the .toString() of an Integer?  Or zero padding the 
field somehow?  You can use the .toString method, but you have to be 
sure that the sorting code does the right parsing of it - so you might 
need to specify SortField.INT as its type.  It will do automatic 
detection if the type is not specified, but that assumes that the first 
document it encounters parses properly, otherwise it will fall back to 
using a String sort.

Erik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





   -Original Message-
   From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
   Sent: Thursday, November 04, 2004 9:53 PM
   To: 'Lucene Users List'
   Subject: RE: Sorting in Lucene.
   
   Hi Chuck,
   
   Can you please point me to some articles or FAQ about Sorting in
Lucene?
   
   Thanks a lot for your reply.
   
   Thanks,
   Ramon
   
   -Original Message-
   From: Chuck Williams [mailto:[EMAIL PROTECTED]
   Sent: Thursday, November 04, 2004 9:44 PM
   To: Lucene Users List
   Subject: RE: Sorting in Lucene.
   
   Yes, by one or multiple criteria.
   
   Chuck
   
  -Original Message-
  From: Ramon Aseniero [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 04, 2004 6:21 PM
  To: 'Lucene Users List'
  Subject: Sorting in Lucene.
 
  Hi All,
 
 
 
  Does Lucene supports sorting on the search results?
 
 
 
  Thanks in advance.
 
  Ramon
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]