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
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
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*
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
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
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