Lucene is not searching in more than one documents
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, March 11, 2009 10:48 PM

Hi,

I have implemented Lucene search engine. It is behaving strangely for different search words. It giving all the matching documents for some of the search words but not giving all the documents for some of the search words.

It is also not searching in .pdf documents.


Thanks in advance

Mahi

Re: Lucene is not searching in more than one documents

Posted By:   alfredalfie  
Posted On:   Thursday, June 14, 2012 02:36 AM

You need to store the documents' summary in the index (use Field.Store.YES when creating that field) and then use the Highlighter from the contrib area (distributed with Lucene since version 1.9 as. It's important to use a rewritten query as the input for the highlighter, i.e. call rewrite on the query. Otherwise simple queries will work but prefix queries etc will not be highlighted.   bike accident lawyer

Re: Lucene is not searching in more than one documents

Posted By:   Anonymous  
Posted On:   Monday, June 1, 2009 03:21 AM

use lukemin.jar to browse through your index and see wether the keyword u r searching for exists in index or not. Use Standard analyzer for clear results. if possible share your code and scenerio

PDF documnets cant be indexed directly, you have to get the contents of pdf as a string using some I/O logic and index it.

Let me know if u have still problem
About | Sitemap | Contact