Re: Indexing and Searching fields that have unique values

2010-04-24 Thread Ivan Liu
I think Anshum is right。 And may your range is too big and is sorting 2010/4/23 Anshum > Hi Ravi, > > Adding to what Erick said, you could do index the numbers as numeric fields > instead of strings. This should improve things for you by a considerable > amount. > P.S: I'm talking with my knowl

Re: Indexing and Searching fields that have unique values

2010-04-22 Thread Anshum
Hi Ravi, Adding to what Erick said, you could do index the numbers as numeric fields instead of strings. This should improve things for you by a considerable amount. P.S: I'm talking with my knowledge on Java Lucene. -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed her

Re: Indexing and Searching fields that have unique values

2010-04-22 Thread Erick Erickson
You have to provide more info, especially the search code you're using. How many documents in your index? What are you measuring? Anything else you can think of that might help people diagnose your issue. Also, consider asking on the .Net user's list. Known things to look for (in Java). 1> Are y

Indexing and Searching fields that have unique values

2010-04-22 Thread Ravi Patel
Using Lucene.Net I've built an index of documents. The documents also have a unique identifier (my identifier, not the lucene index's id). The unique identifers are also a sort order of new-ness (higher id values are newer) string my_id ="1234" doc.Add(new Field("id", my_id, Fie