Can you show a practical example of what do you get ? Highlight is calculated on stored fields, and the term offset and position if calculated , should be ok ! Let me know
Cheers 2015-06-11 18:50 GMT+01:00 Travis <tra...@hlt.utdallas.edu>: > Hey everyone! > > I'm trying to setup a Solr instance on some free text clinical data. > This data has a lot of white space formatting, for example, I might have a > document that contains unstructured bulleted lists or section titles. > > For example, > > blah blah blah... > MEDICATIONS: > * Xanax > * Phenobritrol > > DIAGNOSIS: > blah blah blah... > > When indexing (and thus querying) this document, I use a text field with > tokenization, stemming, etc, lets call it "text". > > Unfortunately, when I try to print highlighted results, the newlines and > whitespace are obviously not preserved. In an attempt to get around this, I > created a second field in the index that stores the full content of each > document as a string, thus preserving the whitespace, called "raw_text". > > If I setup the search page to search on the text field, but highlight on > the text_raw field, then the highlighted matches don't always line up. Is > there a way to some how project the stemmed matches from the text field > onto the text_raw field when displaying hightlighting? > > Thank you for your time, > Travis > -- -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England