Re: Lucene reorganizing indexes

2012-07-18 Thread googoo
Optimize will release disk space if have lots of delete. (Merge will do same thing). For me, I think optimize will little bit speed up search. Which JRE are you using? for windows, if you are using 64bit JRE, then lucene try to map index to memory. that will use lots of memory and also involve lot

Re: how to implement a search engine like gmail?

2012-07-18 Thread googoo
it always add one more search conditional. like you search by subject:hello. the back end will search subject:hello AND accound:齐保元 -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-implement-a-search-engine-like-gmail-tp3995675p3995700.html Sent from the Lucene - Java Us

Re: Multiple sort field

2012-07-18 Thread googoo
I don't think lucene will support multi sort. If you look into org.apache.lucene.search.TopScoreDocCollector you may get some feeling. It use max heap to sort the document, and the score is one time calculate, it it not first sort by time, then sort again by id. When lucene sort below documents:

Re: In memory Lucene configuration

2012-07-18 Thread googoo
Doron, To verify actual query speed, i think you may need: 1) do not run index job 2) in solrconfig.xml, set filterCache and queryResultCache value to 0 3) restart solr 4) run the query and check the qtime result That may give you some idea what is actual query time. To break down query time, yo