Re: Analyzing suggester for many fields

2013-08-27 Thread Goutham Tholpadi
Field-specific suggestions is a good idea that I had not thought about. Thanks Mike, for the answer, and the suggestion! :) Goutham Tholpadi https://sites.google.com/site/gtholpadi/ On Tue, Aug 27, 2013 at 9:28 PM, Michael McCandless wrote: > I think you should just implement your own TermFreqI

Re: Analyzing suggester for many fields

2013-08-27 Thread Michael McCandless
I think you should just implement your own TermFreqIterator, that wraps/delegates each of the N fields in turn? But, at suggestion time, do you need per-field suggestions? If so, maybe you should build a separate suggester for each field... Mike McCandless http://blog.mikemccandless.com On Tu

Analyzing suggester for many fields

2013-08-27 Thread Goutham Tholpadi
Lucene Version : 4.4.0 SITUATION : I need to suggest terms to the user based on a query prefix typed in a textbox. The terms suggested should exist in the index that will be searched. I want to suggest terms from more than one field in the index. I am trying to use org.apache.lucene.search.sugge

Reg FastVectorHighlighter returning first sentence of match

2013-08-27 Thread VIGNESH S
Hi, I tried FastVectorHighlighter to highlight the first sentence in which the match occured. I tried both ScoreOrderFragmentsBuilder and SimpleFragmentBuilder.Both of them are not returning first sentence where the search query matches. Please Kindly help me.. -- Thanks and Regards Vignesh Sr

Re: Huge FacetArrays while using SortedSetDocValuesAccumulator

2013-08-27 Thread Shai Erera
Hi SortedSetDocValuesAccumulator does receive FacetArrays in its ctor, so you can pass ReusingFacetArrays. You will need to call FacetArrays.free() when you're done with accumulation though. However, do notice that ReusingFacetArrays did not show any big gain even with large taxonomies -- that is

Re: Wildcard in PhraseQuery

2013-08-27 Thread mark harwood
SeeĀ  http://lucene.apache.org/core/4_3_1/queryparser/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.html From: Ian Lea To: java-user@lucene.apache.org Sent: Tuesday, 27 August 2013, 10:16 Subject: Re: Wildcard in PhraseQuery See the FAQ

Re: Boosting potential phrases when using QueryParser

2013-08-27 Thread Ian Lea
I don't think there's a standard solution. Using PhraseQuery as you suggest should work - you could also look at the setSlop(s) method of PhraseQuery. SpanQuery and its friends such as SpanNearQuery are more flexible but not generated by default by QueryParser, although if you are going to be ext

Re: Delete content corresponding to FileName from INDEX and corresponding change in INDEXES FOR SUGGESTION.

2013-08-27 Thread Ian Lea
How many lucene indexes do you have? Lucene has no concept of main or child indexes. To remove all docs from an index for a given indexed field write.deleteDocuments() is the way to do it, although in your case probably by Term, like your code sample: Term term1=new Term("name","D111-123-987.txt"

Re: Wildcard in PhraseQuery

2013-08-27 Thread Ian Lea
See the FAQ: http://wiki.apache.org/lucene-java/LuceneFAQ#Can_I_combine_wildcard_and_phrase_search.2C_e.g._.22foo_ba.2A.22.3F -- Ian. On Tue, Aug 27, 2013 at 5:11 AM, Chuming Chen wrote: > Hi All, > > Can I use wildcard in a phrase query in Lucene/Solr? Can anybody point me > some directions