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 Mysurf Mail <st...@gmail.com> on 2013/07/10 10:32:17 UTC

Disabling workd breaking for codes and SKUs

Some of the data in my index is SKUs and barcodes as follows
ASDF3-DASDD-2133DD-21H44

I want to disable the wordbreaking for this type (maybe through Regex.
Is there a possible way to do this?

Re: Disabling workd breaking for codes and SKUs

Posted by Gora Mohanty <go...@mimirtech.com>.
On 10 July 2013 14:02, Mysurf Mail <st...@gmail.com> wrote:
> Some of the data in my index is SKUs and barcodes as follows
> ASDF3-DASDD-2133DD-21H44
>
> I want to disable the wordbreaking for this type (maybe through Regex.
> Is there a possible way to do this?

What fieldtype are you using for this in schema.xml?
Use a string field, or some non-analysed field that stores
the data as is.

Regards,
Gora