Hi
I wrote a program that make a pdf document to an Lucene document. The
field ate "contents", "sentence", :
How do i display the sentence the query String is in? and how do I
Highlight the String?
cheers
anton feldmann
package de.coli.seek.lucene;
import
Hi, All,
I use lucene highlight package to generate KWIC for our application.
The part of the code is as following:
=
if(text != null ){
TokenStream tokenStream = analyzer.tokenStream("contents",
Hi -
I tried increasing SUMMARY_LENGTH to 1 (originally 200) in HTMLParser.java
and HTMLParser.jj files. The purpose is to create snippet and highlight the
search terms within it.
Then I used ant to compile (also used javacc-HTMLParser, compile, jar,
jar-demo, war-demo and copied war file
Hi all,
I am using *SimpleSpanFragment *to find the words a few positions around the
match.
I am specifying the number of characters, which is the second parameter of
the *SimpleSpanFragment *constructor .
However, it always gives the words to the right of the match and does not
give me the word
Hi,
I have a collection of 500 txt documents and I implement a web
application(JSP) for searching these documents.
In addition, the application shows the BestFragment of each result and
highlights the query terms.
My application is slow enough (about 2,5-3 seconds for each query) even if I
run it
enter());
markedString = ht.getBestFragment(ctf, myText);
However, if myQuery has a phrase like "john smith", then it will highlight
"john" every place it sees it and "smith" everyplace it sees it regardless of
whether they are together. Is this expected
interest?
Cheers
Mark
--- [EMAIL PROTECTED] wrote:
>
>
> Hi, All,
>
> I use lucene highlight package to generate KWIC for
> our application.
>
> The part of the code is as following:
>
=
> if(text !=
of
> overlapping tokens you will end up with a long
> highlighted selection.
>
> Which analyzer are using out of interest?
>
>
> Cheers
> Mark
>
>
>
> --- [EMAIL PROTECTED] wrote:
> >
> >
>
As much as you have shown of the example output is
roughly what I would expect - using the default
simpleFragmenter you get roughly 100 character sized
fragments and you have shown 3 fragments sized 97, 100
and 105 chars long separated by "...".
> Of course the result is far more than this.
So ar
Hi, Mark,
Sorry for the confusing. The complete code is here:
===
Analyzer analyzer = new StandardAnalyzer();
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = in.readLine();
if (line.length() == -
Ying - please properly subscribe to the java-user list - I've
moderated in each of your mails thus far.
Erik
On May 5, 2005, at 2:18 PM, [EMAIL PROTECTED] wrote:
Hi, Mark,
Sorry for the confusing. The complete code is here:
===
Analyzer analyzer =
Hi, Mark,
Please ignore my previous posting. I sent it by accident.
Sorry for the confusing. The complete code is here:
===
Analyzer analyzer = new StandardAnalyzer();
BufferedReader in = new BufferedReader(new InputStreamReader(System.
All looks OK with that bit.
At the risk of sounding obvious - are you mistaking the results from
multiple documents as the highlighted content from just one document?
eg the end of your "for" loop looks like this:
System.out.print(result);
}
and you assume the printed display is from just
Thanks for pointing out this issue.
The bug was related to having a doc bigger than the maxNumDocsToAnalyze
setting. In this situation, the last fragment created was always sized
from maxNumDocsToAnalyze position to the remainder of the doc (in your
case, quite large!)
I have fixed this in SVN
Hello,
I am wondering whether using Lucene Highlighter it is possible to highlight
parts of words. So for instance, if I type A then in word America I would
have America or if I type er I would get America
Thanks for replies
--
View this message in context:
http://www.nabble.com/One-character
Currently I am following a long drawn approach where
1) I find index of the matching text in the original
2) For a list of words to the left of index and to the right of index+length
of matching text
3) Then a pick some words from the 1st list and prepend to my matching text
text and from my secon
Hello
i am having the following code to highlight a text
public String highlight(String text, String query ) throws IOException {
TermQuery query = new TermQuery(new Term("f", query));
QueryScorer scorer = new QueryScorer(query);
SimpleHTMLFormatter formatter =
Hello
I am using Highlighter to highlight query terms in documents getting
from a database founded from lucene search.
My problem is that when i display the full document, highlighter works
fine for most of documents but if the document is huge the highlighter
returns only a part of
Hi,
I'm just migrating our small search customization from Lucene version
2.3 to the current version (3.0.3) and wonder why, in contrast to the
old version, we no longer get the Wildcard Queries (which are default,
since surround the search string with asterisks) highlighted.
We're using the
Hi All,
I use proximity operator in my queries (for example "w1 w2 WITHIN 4" to
find all documents where the distance between w1 and w2 and less or equals to
4)
For all documents matching the query, I need to know the corresponding
occurences (w1, w2) to highlight th
The fastest way to see if opening/closing your searcher is a problem would
be to write a tiny little program that opened the index, fired off a few
queries and timed each one. The queries can be canned, of course. I'm
thinking this is, say, less that 20 lines (including imports). If you're
familia
score);
ht.setTextFragmenter(new NullFragmenter());
markedString = ht.getBestFragment(ctf, myText);
However, if myQuery has a phrase like "john smith", then it will highlight "john" every
place it sees it and "smith" everyplace it sees it regardless of w
Hi, All,
I use lucene highlight package to generate KWIC contents. When part of the
paper with text like this,
==
PARTICIPATORY NATURAL RESOURCES MANAGEMENT IN MOZAMBIQUE
AN ASSESSMENT OF LEGAL AND INSTITUTIONAL ARRANGEMENTS FOR
rough them.
Lucene works great! I create index, analyzer, send query, get hits...
The problem is that one of the text of the collection is always displayed in a
JTextArea, and I want to be able to highlight, mark out in color, the words
that match the query.
Now, there is the Highlighter in Java
Hello
i am having the following code to highlight a text
public String highlight(String text, String query ) throws IOException {
TermQuery query = new TermQuery(new Term("f", query));
QueryScorer scorer = new QueryScorer(query);
SimpleHTMLFormatter formatter =
Coast US time.
It just clutters email and makes it less likely that you will get a
response.
-Grant
On Jun 26, 2008, at 3:48 AM, [EMAIL PROTECTED] wrote:
Hello
i am having the following code to highlight a text
public String highlight(String text, String query ) throws
IOException {
T
highlight a text
public String highlight(String text, String query ) throws IOException {
TermQuery query = new TermQuery(new Term("f", query));
QueryScorer scorer = new QueryScorer(query);
SimpleHTMLFormatter formatter =
new SimpleHTMLFormatter("",
and then the to get the
corresponding record from database. My problem is that: i want to
highlight the field with HTML query string that using on searching.
Is it possible to do with Hightlighter or i must write my own class?
Grant Ingersoll wrote:
Because there are no matches? Have
I believe Highlighter.setMaxDocBytesToAnalyze(int byteCount) should be used
for this.
On Mon, Aug 11, 2008 at 11:40 AM, <[EMAIL PROTECTED]> wrote:
> Hello
>
> I am using Highlighter to highlight query terms in documents getting from a
> database founded from lucene search.
&g
eople that can possibly help or
add valuable input.
--
- Mark
http://www.lucidimagination.com
AHMET ARSLAN wrote:
> Hi Mark,
>
> I am using LUCENE-1486. I am having highlighting problems with it.
> With solr 1.3.0 it was working with hl.usePhraseHighlighter=true which uses
> Spa
cene's default QueryParser
highlighting comes.
I am trying to highlight full original text, preserving proximity criteria.
Choice of FastVectorHighlighter or Highlighter is not important for me.
I was using ComplexPhraseQueryParser with solr 1.3.0, without problems with
PhraseHighlighter. But
hting comes.
>
> I am trying to highlight full original text, preserving
> proximity criteria.
> Choice of FastVectorHighlighter or Highlighter is not
> important for me.
>
> I was using ComplexPhraseQueryParser with solr 1.3.0,
> without problems with PhraseHighlighter
the same query string is
>> parsed by Lucene's default QueryParser highlighting comes.
>>
>> I am trying to highlight full original text, preserving
>> proximity criteria.
>> Choice of FastVectorHighlighter or Highlighter is not
>> important for me.
>&
> Looks like its because the query
> coming in is a ComplexPhraseQuery and
> the Highlighter doesn't current know how to handle that
> type.
>
> It would need to be rewritten first barring the special
> handling it
> needs - but unfortunately, that will break multi-term query
> highlighting
> unle
AHMET ARSLAN wrote:
>> Looks like its because the query
>> coming in is a ComplexPhraseQuery and
>> the Highlighter doesn't current know how to handle that
>> type.
>>
>> It would need to be rewritten first barring the special
>> handling it
>> needs - but unfortunately, that will break multi-term
Hi Wulf,
Check the
http://www.lucidimagination.com/blog/2009/06/08/bringing-the-highlighter-back-to-wildcard-queries-in-solr-14/
this may help. I do not know what of Mark's changes are in Lucene 3.x,
but most likely you
will just need to set a proper RewriteMethod for the MultiTermQuery somewhere
...@thetaphi.de
> -Original Message-
> From: Alexander Kanarsky [mailto:kanarsky2...@gmail.com]
> Sent: Tuesday, January 25, 2011 8:44 PM
> To: java-user@lucene.apache.org
> Subject: Re: Highlight Wildcard Queries
>
> Hi Wulf,
>
> Check the http://www.lucidimagination.c
r [mailto:u...@thetaphi.de]
> Sent: Tuesday, January 25, 2011 9:02 PM
> To: java-user@lucene.apache.org
> Subject: RE: Highlight Wildcard Queries
>
> You can set setExpandMultiTermQuery(true) on QueryScorer (or
> WeightedSpanTermExtractor), which is needed by the Highlighter CTOR -
> tha
Removing redundant calls to rewrite was the key when I had this issue
moving from 2.3.x to 3.0.x...
Dawn
On 25/01/2011 20:04, Uwe Schindler wrote:
And: you don't need to rewrite queries before highlighting, highlighter does
this automatically internally if needed.
-
Uwe Schindler
Thank you Alexander and Uwe, for your help.
I read Marks explanation but it seems to me that his changes are not
contained in Lucene-3.0.3.
So I commented out the rewrite, changed QueryTermScorer back to
QueryScorer and now I got the wildcard queries highlighted again.
Wulf
--
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 QueryS
(for example "w1 w2
WITHIN 4" to find all documents where the distance between w1 and
w2 and less or equals to 4)
For all documents matching the query, I need to know the
corresponding occurences (w1, w2) to highlight them (and so exclude
all other w1 and w2 which are no r
Hi
I'm using highlighter and have this problem:
The query is over two or more fields, like:
*body:home AND title:sale*
I want to highlight over body field, but not highlight "sale" if "sale"
is in body.
How I can do this?
When I create a Highlighter instance, t
returnString =
highlighter.getBestFragments(
tokenStream,
text,
maxNumFragmentsRequired,
fragmentSeparator);
}
}
else
Hello,
I downloaded the term highlighting in sandbox.
But it seems not support wildcard searching.
I mean if I use wildcard query, it cannot highlight any terms ?
Any idea to do this or any existing example ?
Best regards,
Eric
Hi,
I'm working with the highlighter and phrase queries and I'm seeing it
highlight not
the phrase, but also the individual terms. So if the phrase query
is "heavy doses", we get that string highlighted, but also individual
occurrences of "heavy" and "dose
it works!! Thanks
I believe Highlighter.setMaxDocBytesToAnalyze(int byteCount) should be used
for this.
On Mon, Aug 11, 2008 at 11:40 AM, <[EMAIL PROTECTED]> wrote:
> Hello
>
> I am using Highlighter to highlight query terms in documents getting from a
> database founded
Now I have the highlighted wildcards but obviously the scoring is lost.
I see that a rewrite of the wildcard query produces a constant score
query. I added
setMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);
to my QueryParser instance but no effect. What's to be done now?
It is, I think, a legitimate question to ask whether scoring is worthwhile
on wildcards. That is,
does it really improve the user experience? Because the MaxBooleanClause
gets tripped
pretty quickly if you add the terms back in, so you'd have to deal with
that.
Would your users be satisfied with s
Sorry for bothering, that was my fault: I my subclass of QueryParser
which wraps * around the terms I had not yet considered the new
multiTermRewriteMethod. After adding these scoring seems to work and
even the rewrite is possible again.
Wulf
Am 26.01.2011 15:10, schrieb Wulf Berschin:
Now I
sco.de]
> Sent: Wednesday, January 26, 2011 3:24 PM
> To: java-user@lucene.apache.org
> Subject: Re: Highlight Wildcard Queries: Scores
>
> Sorry for bothering, that was my fault: I my subclass of QueryParser which
> wraps * around the terms I had not yet considered the new
> mu
men
http://www.thetaphi.de
eMail: u...@thetaphi.de
-Original Message-
From: Wulf Berschin [mailto:bersc...@dosco.de]
Sent: Wednesday, January 26, 2011 3:56 PM
To: java-user@lucene.apache.org
Subject: Re: SPAM(5.0) Re: Highlight Wildcard Queries: Scores
Hi Erick,
good points, but:
-
> From: Wulf Berschin [mailto:bersc...@dosco.de]
> Sent: Wednesday, January 26, 2011 5:07 PM
> To: java-user@lucene.apache.org
> Subject: Re: Highlight Wildcard Queries: Scores
>
> Hallo Uwe,
>
> yes, thanks for the hint, that sounds good, but it seems to me I would
the
r [mailto:u...@thetaphi.de]
> Sent: Wednesday, January 26, 2011 5:34 PM
> To: java-user@lucene.apache.org
> Subject: RE: Highlight Wildcard Queries: Scores
>
> You can always decompose because QueryParser will also decompose and
> will do-the-right-thing (internal using a Ph
--- On Tue, 3/15/11, Cescy wrote:
> From: Cescy
> Subject: About ComplexPhraseQueryParser highlight prob
> To: "java-user"
> Date: Tuesday, March 15, 2011, 11:44 PM
> hi
>
>
> My app can find the document but cannot highlight the
> keywords.
>
>
tokenStream,
text,
maxNumFragmentsRequired,
fragmentSeparator);
}
}
else
{
System.out.println("No Matches found to highl
Ah. You're right. Looks like the current highlighter
api doesn't offer you that degree of control.
The way to fix it is probably to tweak the list of
WeightedTerms you give the highlighter:
[psuedo code follows...]
terms=QueryTermExtractor.getTerms(query);
bodyQueryTerms=new ArrayList();
for all
Hi Mark
This don't work, because
WeightedTerm[] weightedTerm = QueryTermExtractor.getTerms(query);
return query terms values , not the fields names.
example:
for "body:mark title:highlight"
return [mark, highlight], I can't compare this values with "body"
ry);
>
> return query terms values , not the fields names.
> example:
> for "body:mark title:highlight"
>
> return [mark, highlight], I can't compare this
> values with "body" field.
>
> Ernesto.
>
> mark harwood escribió:
>
> >Ah. Yo
--- Ernesto De Santis
<[EMAIL PROTECTED]> wrote:
Hi Mark
This don't work, because
WeightedTerm[] weightedTerm =
QueryTermExtractor.getTerms(query);
return query terms values , not the fields names.
example:
for "body:mark title:highlight"
return [mark, highlight], I
searching.
>
> I mean if I use wildcard query, it cannot highlight
> any terms ?
>
> Any idea to do this or any existing example ?
>
> Best regards,
> Eric
>
>
-
> To unsubscribe, e-mail:
&g
Hi,
> From: Eric Chow [mailto:[EMAIL PROTECTED]
>
> I mean if I use wildcard query, it cannot highlight any terms ?
>
> Any idea to do this or any existing example ?
Try to rewrite query before highlighting.
On Jun 28, 2005, at 9:09 PM, Fred Toth wrote:
Hi,
I'm working with the highlighter and phrase queries and I'm seeing
it highlight not
the phrase, but also the individual terms. So if the phrase query
is "heavy doses", we get that string highlighted, but also indiv
seeing
it highlight not
the phrase, but also the individual terms. So if the phrase query
is "heavy doses", we get that string highlighted, but also individual
occurrences of "heavy" and "doses".
I can't tell if that's because I'm doing something wrong or if
FYI, I made an update to this (I'm the author) to handle span queries. I
uploaded the updated code to the same bugzilla link. The code doesn't treat
span queries like phrases - it just highlights the terms individually (if
someone can find a way to highlight it as a phrase, feel free
e can find a way to highlight it as a phrase, feel free to
update it).
I'm not sure, at the moment, how this could integrate with the
Highlighter, but I wrote some code for Lucene in Action that displays
spans like this:
spanOr([f:quick, f:fox]):
the brown fox jumps over the lazy
Hi Erik,
Yes I was thinking that code could form the basis of a new highlighter.
I've just attached a QuerySpansExtractor to the bugzilla entry for the
new highlighter. This class produces Spans from queries other than
SpanXxxxQueries eg phrase, term and booleans.
I'm thinking you can throw the
On Jun 30, 2005, at 4:35 PM, markharw00d wrote:
Hi Erik,
Yes I was thinking that code could form the basis of a new
highlighter.
I've just attached a QuerySpansExtractor to the bugzilla entry for
the new highlighter. This class produces Spans from queries other
than SpanXxxxQueries eg p
Hi, i'm having some problems with the size of the fragmentes when i'm doing
the highlight. I pass on the constructor of the SimpleSpanFragmenter a size
of 80, but i'm having some fragments of 500.
But it only happen when i do searches with 3 or more words.
What i notice is that he t
Hi all,
in our Lucene 3.0.3-based web application when a user clicks on a hit
link the targeted PDF should be opened in the browser with highlighted hits.
For this purpose using the Acrobat Highlight File (Parameter xml, see
http://www.pdfbox.org/userguide/highlighting.html and
http
Hi,
is it possibile to use Lucene Highlighter classes to extract highlight
spans instead of getting the "highlighted" string?
I am using lucene 3.0.3 (and I cannot upgrade version for now).
I have the following snippet of code:
QueryScorer scorer = new QueryScorer(highlightQuery);
Hi,
We have a need to present HTML documents with all search
terms highlighted. Everything I've seen regarding the Highlighter
code seems to point to the typical case of extracting relevant
fragments from the text for presentation of hit lists.
Is it possible to use the core highlighting code to
an update to this (I'm the author) to handle span queries. I
BD> uploaded the updated code to the same bugzilla link. The code doesn't treat
BD> span queries like phrases - it just highlights the terms individually (if
BD> someone can find a way to highlight it as a phrase,
I am having the following method to highlight the terms.
public static String getHighlighter(String colName, Highlighter
highlighter,IndexSearcher searcher,int id, Analyzer analyzer) throws
IOException {
String highlightTerm;
TokenStream tokenStream
Hi All,
How do we Highlight words in a searched docs. Please give inputs on
"rewritten query as the input for the highlighter, i.e. call rewrite()
on the query".
Thanks,
Ravinder
DISCLAIMER:
This message contains privileged and confidential information and is intended
o
It could be the "merge contiguous fragments" feature that attempts to
do exactly this to improve readability
It's an option you can turn off.
On 15 Nov 2009, at 01:21, Felipe Lobo wrote:
Hi, i'm having some problems with the size of the fragmentes when
i'm doing
Hi,
I'm using Lucene 2.4.1 with Hibernate Search 3.1.1. I have objects in the
index, for each field I index as follows:
@Fields( value = {
@Field(index = Index.TOKENIZED, store = Store.YES),
@Field(name = "name_forSort", index = Index.UN_TOKENIZED, store =
Store.NO),
})
T
in [Name] and
[Title] fields?
--
View this message in context:
http://www.nabble.com/highlight-only-some-terms-from-query-string--tf4392290.html#a12522976
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To
NullFragmenter, but
ther seems to be nothing for highlighting PDF files...
As starting point I quarried out from
org.apache.lucene.search.highlight.Highlighter the class below which
just returns the Tokens contributing to the hit.
Using the returned tokens a PDF highlight file could be easily
files...
It would be very useful. That said being able to highlight words in any
pictorial representation of a document would be a huge bonus.
As starting point I quarried out from
org.apache.lucene.search.highlight.Highlighter the class below which
just returns the Tokens contributing to the
Hi all
How to provide highlighting for fragmented string which is created from
multi-value field using Lucene 5.3.2 ?
Is any known solution for it?
1. Or first approach - merge all multi-value into one single value and
apply
highlighter.getBestTextFragments(tokenStream, text, false, maxNumFragm
Hi,
I am converting my application from
reading documents into memory, then indexing the documents
to streaming the documents to be indexed.
I quickly found out this required that the field NOT be stored.
I then quickly found out that my highlighting code requires the field to
The challenge with this is always not breaking the HTML page itself.
-Original Message-
From: Fred Toth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 3:47 PM
To: java-user@lucene.apache.org
Subject: Using Highlighter to highlight entire HTML documents?
Hi,
We have a need to
Fred Toth wrote:
Hi,
We have a need to present HTML documents with all search
terms highlighted. Everything I've seen regarding the Highlighter
code seems to point to the typical case of extracting relevant
fragments from the text for presentation of hit lists.
If you dont want to fragment yo
I wrote a very simple sax parser for our xml content - I check for the
search tokens (analyzer.tokenStream) in the text and place a span tag
around each found token. This process could work well with xhtml as well.
In other words, I could never get the highlighter to do what I wanted to
Hi Ravinder
Checkout Highlighter.test in
lucene-2.3.1\contrib\highlighter\src\test\org\apache\lucene\search\highl
ight\ folder
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 28 February 2008 11:03
To: java-user@lucene.apache.org
Subject: Lucene-Highlight
Can you just lowercase a dedicated sort field and leave the others alone.
--
Ian.
On Fri, Mar 12, 2010 at 10:47 AM, Kev Kilroy wrote:
>
> Hi,
>
> I'm using Lucene 2.4.1 with Hibernate Search 3.1.1. I have objects in the
> index, for each field I index as follows:
>
> @Fields( value = {
>
Hi Erick,
good points, but:
our index is fed with german text. In german (in contrast to english)
nouns are just appended to create new words. E.g.
Kaffee
Kaffeemaschine
Kaffeemaschinensatzbehälter
In our scenario standard fulltext search on "Maschine" shall present all
of these nouns. That
o: java-user@lucene.apache.org
> Subject: Re: SPAM(5.0)**** Re: Highlight Wildcard Queries: Scores
>
> Hi Erick,
>
> good points, but:
>
> our index is fed with german text. In german (in contrast to english)
nouns
> are just appended to create new word
uninverted form. Otherwise what text would you
highlight?
On Mon, Feb 13, 2023 at 3:46 PM Shifflett, David [USA]
wrote:
>
> Hi,
> I am converting my application from
> reading documents into memory, then indexing the documents
> to streaming the documents to be indexed.
&g
Hi all,
For example, if I have a document with two fields text and num like
this:
text:foo bar 1
num:1
When users query "foo", I changed the query to "text:foo AND num:1", both
"foo" and "1" in the text field will be highlighted. I don't wanna the word
"1" in
Hi,
I need to do highlight the first sentence which matches the search keyword
in a document using PostingsHighlighter.
How can i do this
Any Help or suggestions welcome
--
Thanks and Regards
Vignesh Srinivasan
Hello,
I have recently been given a requirement to improve document highlights within
our system. Unfortunately, the current functionality gives more of a best-guess
on what terms to highlight vs the actual terms to highlight that actually did
perform the match. A couple examples of issues
Hi all,
I wonder how to highlight the searched word when full-text searching
performed based on Lucene.
At the indexing stage, the contents of a original file is regarded as a FIELD
of a Lucene document:
private static void indexFile(File file, IndexWriter idxWriter)
throws IOException
.
In my custom highlightTerm(String originalText, TokenGroup tokenGroup)
method, tokenGroup.getTotalScore() is always <= 0 for these queries.
Mohsen
--
View this message in context:
http://old.nabble.com/Highlighter-doesn%27t-highlight-wildcard-queries-after-updating-to-2.9.1-3.0.0-tp26969517p26969
*Hi all,*
**
*I wanted to use to following code to highlight the whole sentence with
"\"something\"~n" to be parsed.*
**
*The QueryParser part worked well, but when integrated with Highlighter, it
ended up with exception. *
**
*Does anyone have any clue as I'm investiga
Pass a field name to the QueryScorer constructor.
See "testFieldSpecificHighlighting" method in the Junit test for the
highlighter for an example.
Cheers
Mark
zhu jiang wrote:
Hi all,
For example, if I have a document with two fields text and num like
this:
text:foo bar
Thx a lot!
2006/9/26, markharw00d <[EMAIL PROTECTED]>:
Pass a field name to the QueryScorer constructor.
See "testFieldSpecificHighlighting" method in the Junit test for the
highlighter for an example.
Cheers
Mark
zhu jiang wrote:
> Hi all,
>
>For example, if I have a document with two f
You might be able to make a custom scorer that assigns an insanely
great score to the first sentence it's asked to score?
Mike McCandless
http://blog.mikemccandless.com
On Wed, Jul 17, 2013 at 6:18 AM, VIGNESH S wrote:
> Hi,
>
> I need to do highlight the first sentence whi
H S wrote:
>
> Hi,
>
> I need to do highlight the first sentence which matches the search keyword
> in a document using PostingsHighlighter.
>
> How can i do this
>
> Any Help or suggestions welcome
> --
> Thanks and Regards
> Vignesh Srinivasan
>
>
--
Thanks and Regards
Vignesh Srinivasan
9739135640
1 - 100 of 126 matches
Mail list logo