How to use Query and TermQuery in a single file

2006-06-13 Thread Ramesh Salla
Hi, I am new to Lucene but feel quite comfortable using the API. I retrieve the Meta tags and the body from HTML files and their respective Title and Description from the database and then index documents. I use Query class to parse the search query. I get the results and I display the Title an

Re: Searching multiple indexes

2006-06-25 Thread Ramesh Salla
Hi, use MultiFieldQueryParser instead of the Queryparser that you are using. Like this, String fields[]={field1, field2,} MultiFieldQueryParser parser = new MultiFieldQueryParser(fields, new StopAnalyzer());

How to Integrate the WordNet Synonym Index with my Index

2006-06-29 Thread Ramesh Salla
Hi, seems like am awe struck. My Index is working fine. Now, have got the WordNet synonym-index. How do I make use of this index to get synonym support search results.? Do I have to Merge these 2 indexes using the Merge class? will that work? or Do I have to inject the field "word" values

Re: How to Integrate the WordNet Synonym Index with my Index

2006-06-29 Thread Ramesh Salla
> all those aggregated terms along with the users initial search. > > Then you return the matches. > > But, I may be wrong.. > > On Thu, 29 Jun 2006 15:56:03 +0200, Ramesh Salla > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > seems like am awe

Adding synonym-index to an other index

2006-07-11 Thread Ramesh Salla
Hi, can we ever add the WordNet Synonym-Index to an other Index.? I think this is a bit painful process. For now, I retrieve the Synonyms of the words from the Search-Query and hence reform the Search-Query. Will the AddIndexes(indexes) do this for us? Does the Merged Index give meaningful resul

RE: Searching for a phrase which spans on 2 pages

2006-07-13 Thread Ramesh Salla
Yes, this can be easily done using TokenStream class and hence getting the the BestTokens. But ofcourse you have to have this content in the index. DONE Ramesh Reddy On Wed, 2006-07-12 at 12:43 +0100, Mike Streeton wrote: > The simplest solution is always the best - when storing the p

Re: question regarding Field.Index.UN_TOKENZED

2006-07-13 Thread Ramesh Salla
Are you using the StandardAnalyzer at the time of Indexing? which one do u use at the time of Querying? Ramesh Reddy On Mon, 2006-07-10 at 18:37 -0700, Chris Hostetter wrote: > : I'm storing a field in an index with that option > : (Field.Index.UN_TOKENZIED). > > the key to understanding your

Re: Highlighter

2006-08-16 Thread Ramesh Salla
which version of Lucene and which version of Highlighter, do you use. I dont see any such issues? I think,  I can resolve the issue,  if you can pass on a few info on you are trying to get the data and highlight things. On Sat, 2006-08-12 at 00:05 +, Ronnie Kolehmainen wrote: There is

Re: HELP: how to highlight the search key word in lucene's search results?

2006-08-16 Thread Ramesh Salla
goto mailing list archive and you find a lot of info there. i can brief you out procdure for now. get the Highlighter jar from the lucene-sandbox and see the examples from this downloaded folder. Get the Search Results from the Hits and pass this string to the highlighter class. if you still