You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by vincent <vi...@xsudo.com> on 2013/08/30 05:24:53 UTC

how to delete ubb code when solr indexes documents

The  original document :

[backcolor=#ffffff][color=#333333][font=Tahoma] the document content   [/font][/color][/backcolor]

I want to delete the ebb code in this document when solr index this document. just left :

the document content. 

-- 
vincent


Re: how to delete ubb code when solr indexes documents

Posted by Upayavira <uv...@odoko.co.uk>.
If you can't do it before the content gets to Solr, which would be best,
then use the ScriptUpdateProcessor and code up some Javascript to remove
it. Or, if the pattern is regular enough, you might be able to use the
RegexpUpdateProcessor.

Upayavira

On Fri, Aug 30, 2013, at 04:24 AM, vincent wrote:
> The  original document :
> 
> [backcolor=#ffffff][color=#333333][font=Tahoma] the document content  
> [/font][/color][/backcolor]
> 
> I want to delete the ebb code in this document when solr index this
> document. just left :
> 
> the document content. 
> 
> -- 
> vincent
>