How to extract only highlight spans?

2012-07-03 Thread Raf
Hi, is it possibile to use Lucene Highlighter classes to extract highlight spans instead of getting the "highlighted" string? I am using lucene 3.0.3 (and I cannot upgrade version for now). I have the following snippet of code: QueryScorer scorer = new QueryScorer(highlightQuery); // already rew

Re: QueryParser, double quotes and wilcard inside the double quotes

2012-07-03 Thread Ian Lea
You can use the QueryParser proximity feature e.g. "foo test"~n where n is the max distance you want them to be apart. Or look at the SpanQuery stuff e.g. SpanNearQuery. -- Ian. On Tue, Jul 3, 2012 at 4:59 PM, Jochen Hebbrecht wrote: > Hi all, > > Imagine you have the following books which ar

Re: Best practise closing Lucene index

2012-07-03 Thread Jochen Hebbrecht
Thanks. We are currently more thinking of a statefull EJB. We are thinking to use the @Remove annotation ... 2012/7/2 Torsten Krah > I you really want a per session based reader, use a > > > http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html > > and create the objec

[ANNOUNCE] Apache Lucene 4.0-alpha released.

2012-07-03 Thread Robert Muir
3 July 2012, Apache Lucene‚ 4.0-alpha available The Lucene PMC is pleased to announce the release of Apache Lucene 4.0-alpha Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires

BrazilianAnalyzer - VERSION.NET X VERSION JAVA

2012-07-03 Thread Marcelo Neves
Good morning everyone, I am new to the list and I have a problem. My problem is in version. Net, but I really want to see the vision here in JAVA version. I was trying to use the BrazilianAnalyzer. I created some fields "NOT_ANALYZED" (java version "KEYWORD") and a field with the contents as "ana

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread mark harwood
Many considerations here - I find the technical concerns you present typically open a can of worms for any businesses worried about security. It gets political quickly.   In environments where security is paramount, software must be formally accredited, which is a costly exercise. Often the choi

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi Feng, Hmmm, but Document is a Java object? It holds all kinds of other objects like Sets, Lists, Maps, Strings, Doubles, ... Can we store Java objects in a Lucene index? Jochen 2012/7/3 feng lu > and you can add d as a field with STORE and NOT_ANALYZER tag to it if d in > Document is not l

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi Chris, Yeah! That's a possibility, thanks :-)! Jochen 2012/7/3 Chris Lu > Can you index the rule1 and rule2 fields into the documents, and when > searching with the keywords, also append rule1:foo and rule2:bar to the > query? > > Chris > - > Instant Scalable Full-T

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread feng lu
and you can add d as a field with STORE and NOT_ANALYZER tag to it if d in Document is not large. On Tue, Jul 3, 2012 at 4:04 PM, Chris Lu wrote: > Can you index the rule1 and rule2 fields into the documents, and when > searching with the keywords, also append rule1:foo and rule2:bar to the > qu

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Chris Lu
Can you index the rule1 and rule2 fields into the documents, and when searching with the keywords, also append rule1:foo and rule2:bar to the query? Chris - Instant Scalable Full-Text Search On Any Database/Application site: http://www.dbsight.net demo: http://search.dbs

Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi all, I have an application which holds a list of documents. These documents are indexed using Lucene. I can search on keywords of the documents. I loop the TopDocs and get the ID field (of each Lucene doc) which is related to the ID column in my relational database. From all these ID's, I creat