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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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