lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lucas <bluca...@gmail.com>
Subject RE: strange highlighting behavior
Date Tue, 19 Sep 2006 18:22:13 GMT
Yonik, thanks for the tip. 

Converting to 'integer' and deleting/reindexing fixed it.  Can 'sint' be
used for the id with highlighting, or does one need to use integer or string
for that?  Just trying to figure out if it's a bug with sint, or possibly
due to the fact I could have changed sint to integer without deleting the
data.
 
-B

-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley
Sent: Tuesday, September 19, 2006 11:55 AM
To: solr-user@lucene.apache.org
Subject: Re: strange highlighting behavior

On 9/19/06, Yonik Seeley <yonik@apache.org> wrote:
> The fix would be to use
> FieldType.indexedToReadable() to convert the indexed form back to a
> readable form.

Oops, that should be storedToReadable since the id is obtained from
the stored fields, not from the index.

Hmmm, a quick look at the code suggests this is already beeing done:

         String printId = searcher.getSchema().printableUniqueKey(doc);
         fragments.add(printId == null ? null : printId, docSummaries);

What you are seeing may be due to indexing documents with one version
of the schema and viewing them with another.  Try deleting the
solr/data/index directory and then reindexing everything.

-Yonik


Mime
View raw message