Re: Upgrade Lucene to latest version (4.0) from 2.4.0

2013-01-09 Thread Bin Lan
in IndexWriter, IndexReader, and IndexSearcher classes. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read Our Blog: security.perimeterusa.com/blog On Wed, Jan 9, 2013 at 2:04 PM, saisantoshi wrote: > We h

Re: Highlighter throws ClassCastException TextFragment cannot be cast to DocumentFragment

2012-12-27 Thread Bin Lan
Woops, please ignore this. There is a mixed version of jar file... Sorry about this. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read Our Blog: security.perimeterusa.com/blog On Thu, Dec 27, 2012 at 3:39

Highlighter throws ClassCastException TextFragment cannot be cast to DocumentFragment

2012-12-27 Thread Bin Lan
) com.seccas.tag.SelectSearchResultsTag.doStartTag(SelectSearchResultsTag.java:779) We call getBestSegments as following: String[] fragments = highlighter.getBestFragments( analyzer, "Message", message, mf ); Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Fo

Re: Changing behavior of StandardAnalyzer

2012-11-14 Thread Bin Lan
Hi Kiwi, Thank you, that works. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read Our Blog: security.perimeterusa.com/blog On Wed, Nov 14, 2012 at 6:29 AM, kiwi clive wrote: > Hi Bin Lan, > >

Changing behavior of StandardAnalyzer

2012-11-13 Thread Bin Lan
"" instead? We had a in-house Analyzer implementation, it used to do this on lucene 2.9, but somehow the behavior changes after we upgrade to 3.6.1. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read

Re: AlreadyClosedException when doing search

2012-11-09 Thread Bin Lan
Hi Ian, Thank you, figure it out last night a piece legacy code closes the TermDoc in every loop. Somehow the old version was fine with it. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read Our Blog

AlreadyClosedException when doing search

2012-11-08 Thread Bin Lan
ry, filter, collector ); I do not see any reason why this could happen. The IndexReader is not being shared with other thread. Regards -- Bin Lan Software Developer Perimeter E-Security O - (203)541-3412 Follow Us on Twitter: www.twitter.com/PerimeterNews Read Our Blog: security.perimeterus