Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2012 at 19:21 UTC
Updated:
12 Oct 2012 at 10:23 UTC
Currently apachesolr_clean_text() strips out all html tags from the $node->body and replaces them with spaces. This is fine (prevents running words together) but if there a lot of html tags in the content, then a lot of extra space gets added.
This causes problems, especially in apachesolr_index_node_solr_document(). When building the document teaser, truncate_utf8() is used, which could result in empty teasers if there is a lot of space in the cleaned node body.
Attached patch strips extra spaces from cleaned text.
| Comment | File | Size | Author |
|---|---|---|---|
| apachesolr-clean-text.patch | 712 bytes | duellj |
Comments
Comment #1
pwolanin commentedLooks reasonable, though we be nice if there were a faster function to use.
Comment #2
pwolanin commentedJust did the same for a custom module, so I think this is a needed fix.
committed to both 7.x-1.x and 6.x-3.x
Comment #3
nick_vh