About ComplexPhraseQueryParser highlight prob

2011-03-15 Thread Cescy
hi My app can find the document but cannot highlight the keywords. ComplexPhraseQueryParser parser = new ComplexPhraseQueryParser(Version.LUCENE_30, "contents", analyzer); Query query = parser.parse("\"(great~) sum*\""); QueryScorer scorer = new QueryScorer(query); Looks like its becau

About highlighter

2011-03-15 Thread Cescy
Hi, My highlight code is shown as following: QueryScorer scorer = new QueryScorer(query); Highlighter highlighter = new Highlighter(simpleHTMLFormatter, scorer); highlighter.setTextFragmenter(new SimpleSpanFragmenter(scorer, 500)); String contents = doc.get("contents"); TokenStream t

About query parser

2011-03-15 Thread Cescy
Hi, I used parser in my app. For example, i wanna search for 'great sum', and 'great sum', 'greater sum', ... may be found, and sum great must not be found. It means I need not only exact word, but also prefix search (or some other search criteria like fuzzy...). In my app, I used "great*

about pdf search

2011-03-06 Thread Cescy
Hi, I am developing a pdf search engine, just use in local computer to search massive pdf documents. I used pdfbox+lucene to index and search, and then I have to display the context to the user in pdf file in user interface. HOW CAN I ACHIEVE THIS??? THX

about pdf search

2011-03-06 Thread Cescy
Hi, I am developing a pdf search engine, just use in local computer to search massive pdf documents. I used pdfbox+lucene to index and search, and then I have to display the context to the user in pdf file in user interface. HOW CAN I ACHIEVE THIS??? THX

Some Problem with Lucene in Java

2011-02-03 Thread Cescy
field, and i just need the context of each keyword (i.e. some specified part of the contents in the specified field). Are there any ways to do so??? Thx. Cescy