Re: Filter documents on a field value while searching the index

2011-01-22 Thread amg qas
Here's the Lucene query syntax: > http://lucene.apache.org/java/2_9_1/queryparsersyntax.html > > See below > > Best > Erick > > On Sat, Jan 22, 2011 at 2:32 PM, amg qas wrote: > >> Hi, >> >> I have couple of questions on filtering result set while performi

Filter documents on a field value while searching the index

2011-01-22 Thread amg qas
Hi, I have couple of questions on filtering result set while performing a search in lucene index : 1) I want to filter the document set returned when searching an index based on a match on a particular field. For eg if I have a Field in my index called CompanyName - then while searching for docum

Re: Phrase query on multiple fields

2011-01-22 Thread amg qas
query > yourself.  The latter is quite straightforward: > >  BooleanQuery bq = new BooleanQuery(); >  PhraseQuery pq1 = ...; >  PhraseQuery pq2 = ...; >  bq.add(pq1, ...); >  bq.add(pq2, ...); >  etc. > > > -- > Ian. > > > On Thu, Jan 20, 2011 at 3:13 AM, amg

Phrase query on multiple fields

2011-01-19 Thread amg qas
Hi, I have two question regarding phrase query : 1) How can I execute a phrase query over multiple fields ? I can only get PhraseQuery to work over a single field - For eg something like this : PhraseQuery query = new PhraseQuery(); query.setSlop(1

How to parse & index different portions of an HTML page using Tika & Lucene ?

2011-01-10 Thread amg qas
I have been trying to parse & index different portions of an HTML page using Tika & Lucene. For eg. I would like to index text within , , , tags of a HTML page separately and provide a different boost to each of them. I am using Tika for HTML parsing and creating a Document object with the appropr