And unfortunately, that isn't the best approach for highlighting to
take - a uniqueKey shouldn't be required for highlighting. I've yet
to see a real-world deployment of Solr that did not have a uniqueKey
field, but there's no reason Solr should make that assumption.
Erik
On Jun 1
Just figured out what happened... It's necessary for the schema to have a
uniqueKey set, otherwise, highlighting will have one or less entries, as the
map's key is the doc uniqueKey, so on debuggin I figured out that the
QueryResponse tries to put all highlighted results in a map with null key...
a
I've checked the NamedList you told me about, but it contains only one
highlighted doc, when there I have more docs that sould be highlighted.
On Thu, Jun 18, 2009 at 3:03 PM, Erik Hatcher wrote:
> Note that highlighting is NOT part of the document list returned. It's in
> an additional NamedLis
Here is the query, search for the term "ipod" on the "log" field
q=log%3Aipod+AND+requestid%3A1029+AND+logfilename%3Apayxdev-1245272062125-USS.log.zip&hl=true&hl.fl=log&hl.fl=message&hl.simple.post=%3Ci%3E&hl.simple.pre=%3C%2Fi%3E&hl.usePhraseHighlighter=true&hl.highlightMultiTerm=true&hl.snippets=
Note that highlighting is NOT part of the document list returned.
It's in an additional NamedList section of the response (with
name="highlighting")
Erik
On Jun 18, 2009, at 1:22 PM, Bruno wrote:
Hi guys.
I new at using highlighting, so probably I'm making some stupid
mistake,
Nothing off the top of my head ...
I can play around with some of the solrj unit tests a bit later and
perhaps see if I can dig anything up.
Note:
if you expect wildcard/prefix/etc queries to highlight, they will not
with Solr 1.3.
query.set("hl.highlightMultiTerm", *true*);
The above only
Couple of things I've forgot to mention:
Solr Version: 1.3
Enviroment: Websphere
On Thu, Jun 18, 2009 at 2:34 PM, Bruno wrote:
> I've tried with default values and didn't work either.
>
>
> On Thu, Jun 18, 2009 at 2:31 PM, Mark Miller wrote:
>
>> Why do you have:
>> query.set("hl.maxAnalyzedCha
I've tried with default values and didn't work either.
On Thu, Jun 18, 2009 at 2:31 PM, Mark Miller wrote:
> Why do you have:
> query.set("hl.maxAnalyzedChars", -1);
>
> Have you tried using the default? Unless -1 is an undoc'd feature, this
> means you wouldnt get anything back! This should no
Why do you have:
query.set("hl.maxAnalyzedChars", -1);
Have you tried using the default? Unless -1 is an undoc'd feature, this
means you wouldnt get anything back! This should normally be a fairly
hefty value and defaults to 51200, according to the wiki.
And why:
query.set("hl.fragsize", 1);