RE: i'm having some trouble with class FSDirectory

2011-08-24 Thread Sendros, Jason
Hi Mostafa, Try looking through the API for help with these types of questions: http://lucene.apache.org/java/3_3_0/api/all/org/apache/lucene/store/FSDi rectory.html You can use a number of FSDirectory subclasses depending on your circumstances. Hope this helps! Jason -Original Message

RE: Lucene scoring and random result order

2011-08-25 Thread Sendros, Jason
You can sort on multiple values. Keep the primary sort as a relevancy sort, and choose something else to sort on to keep the rest of the responses fairly static. http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/search/So rt.html Example: Sort sortBy = new Sort(new SortField[] { Sort

RE: deleting with sorting and max document

2011-09-14 Thread Sendros, Jason
Vincent, I think you may be looking for the following method: http://lucene.apache.org/java/2_9_2/api/all/org/apache/lucene/index/Inde xWriter.html#deleteDocuments%28org.apache.lucene.search.Query%29 Jason -Original Message- From: v.se...@lombardodier.com [mailto:v.se...@lombardodier.com

RE: searching / sorting on timestamp and update efficiency

2011-09-22 Thread Sendros, Jason
Storing the date as a long and then searching with NumericRangeQuery will provide you with exactly what you're looking for. This is an efficient search solution for numeric data. Optimize() will reduce the size of your index and improve search time at the cost of a large burst of overhead. Unle

RE: Case insensitive sortable column

2011-10-11 Thread Sendros, Jason
If that's not an option, create another column with the same data lowercased and search on the new column while displaying the original column. Jason -Original Message- From: Greg Bowyer [mailto:gbow...@shopzilla.com] Sent: Tuesday, October 11, 2011 10:43 PM To: java-user@lucene.apache.o