Re: Lucene Query About Sorting

2012-06-26 Thread Yogesh patel
Thanks for reply Ian , But i just gave suppose document number..i have 2-3 GB index and every day , it goes higher. so i cant use searcher.maxdoc(). So i need this solution. Can you please help me out? On Tue, Jun 26, 2012 at 10:42 PM, Ian Lea wrote: > Do you mean you want all hits that match

Question

2012-06-26 Thread kjysmu
I'm beginner of Lucene. I have one big size txt file containing image id + its tag list (some containing foreign characters - anyway only tag written in English will be used for my application ). e.g.) 1 fruit banana food house boy 11423 car red large bmw (it conta

Re:Re: find meaningful words through Lucene

2012-06-26 Thread 齐保元
meaningful just means the word is important than others,like keywords/keyphrase. >Please define meaningful. > >-- >Ian. > > >On Tue, Jun 26, 2012 at 10:39 AM, wrote: >> hi, does anyone knows how to extract meaningful words from Lucene index? > >-

Re: find meaningful words through Lucene

2012-06-26 Thread Ian Lea
Please define meaningful. -- Ian. On Tue, Jun 26, 2012 at 10:39 AM, 齐保元 wrote: > hi,  does anyone knows how to extract meaningful words from Lucene index? - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For a

Re: Lucene Query About Sorting

2012-06-26 Thread Ian Lea
Do you mean you want all hits that match B:abc, sorted by field A? As opposed to the top 100 hits sorted by field A? Just pass a higher value in the search(query, ... 100, ...) call. It will be slower and potentially use more memory but with only 10K docs you probably won't notice. -- Ian.

Re: i'm Lucene beginner. help me

2012-06-26 Thread Adrien Grand
Hi kjysmu, On Tue, Jun 26, 2012 at 11:22 AM, kjysmu wrote: > What i want with lucene is that i wanna get it's image ids for certain query > (tag) > > how can i implement it using Lucene with Java? I moved the discussion to java-user@lucene instead of dev@lucene since your question is not related

Re: Lucene Query About Sorting

2012-06-26 Thread Apostolis Xekoukoulotakis
I am just new here. When you make a query, you create an ordering of the documents based on this query. If you have a second ordering, you have to decide what to do with those 2 orderings. You have to decide how to join those two. The default search orders your results by the query and picks the

Re: Problem querying Lucene after escaping

2012-06-26 Thread secevalliv
Thanks for the advice Ian. As you suggested I tried indexing alt_id as Index.NOT_ANALYZED and stick with TermQuery. It works now. Thanks again, José M. Villaveces On 25 June 2012 17:27, Ian Lea wrote: > The key thing is to be consistent. You can either replace your > TermQuery code with the