Can I still use SearcherManager in this situation?

2012-11-06 Thread Trejkaz
In our application, most users sit around in read-only mode all the time but there is one place where write access can occur, which is essentially scripted at the moment. (*) Currently, we start out opening an IndexReader. When the caller declares that they are going to start writing, we open an I

Re: Lucene 4.0 Get All Index Terms

2012-11-06 Thread cooniur
Hi, could u please tell me how did you solve this problem? Better with an example. I'm new to Lucene4, and I want to list all indices to build a tag cloud. Thank you very much! -- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-4-0-Get-All-Index-Terms-tp3686023p4018644.h

RE: Document scoring

2012-11-06 Thread Uwe Schindler
Use CustomScoreQuery. The external values can be looked up in the CustomScoreProvider. The CSQ wraps the original Lucene Query and can multiply in extra factors. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message-

Re: Using DocValues with CollationKeyAnalyzer

2012-11-06 Thread Robert Muir
Hi Christoph: in my opinion, (ICU)Collation should actually be implemented as DocValues just as you propose: e.g. we'd deprecate the Analyzer and just offer a (ICU)CollationFields that provide an easy way to do this, so you would just add one of these to your Lucene Document. I started a prototype

Using DocValues with CollationKeyAnalyzer

2012-11-06 Thread Christoph Kaser
Hi all, for best performance, I use a SortedBytesDocValuesField to sort results. I would like to use a ICUCollationKeyAnalyzer for this field, so sorting occurs in a "natural" order. However, it seems as if the SortedBytesDocValuesField does not use an analyzers, but expects a ByteRef which is

Re: Near Real Time for multiple applications

2012-11-06 Thread Michael McCandless
On Mon, Nov 5, 2012 at 6:33 PM, Scott Smith wrote: > I've been reading about NRT thinking it might be good to integrate it into my > code. However, I have a question. > > Suppose that the index writer and the index reader run in totally different > JVMs (i.e., they are different applications an

Re: Highlighting html pages

2012-11-06 Thread Michael Sokolov
On 11/6/2012 3:29 AM, Steve Rowe wrote: Hi Scott, HTMLStripCharFilter doesn't require that its input be valid HTML - there is no assumption of balanced tags. Also, highlighted sections could span tags, e.g. if you highlight "this phrase", and the original HTML looks like: … thisphras

Re: App supplied docID in lucene possible?

2012-11-06 Thread Michael McCandless
On Tue, Nov 6, 2012 at 1:04 AM, Ravikumar Govindarajan wrote: > Looks far more complex than I had assumed!!! I think it would be a major undertaking. > An invariant of "non-decreasing docid per flush", if pushed to the app can > save lucene from handling the complex sparse data logic no? > > Luc

Re: Highlighting html pages

2012-11-06 Thread Steve Rowe
Hi Scott, HTMLStripCharFilter doesn't require that its input be valid HTML - there is no assumption of balanced tags. Also, highlighted sections could span tags, e.g. if you highlight "this phrase", and the original HTML looks like: … thisphrase … the highlighting code would have to