nt/7b6e2cc37bbb95c8/faceting_and_first_letter_of_fields#7b6e2cc37bbb95c8
>
>
> : Date: Mon, 18 Oct 2010 19:31:28 -0200
> : From: Renato Wesenauer
> : Reply-To: solr-user@lucene.apache.org
> : To: solr-user@lucene.apache.org
> : Subject: I need to indexing the first charact
/7b6e2cc37bbb95c8/faceting_and_first_letter_of_fields#7b6e2cc37bbb95c8
: Date: Mon, 18 Oct 2010 19:31:28 -0200
: From: Renato Wesenauer
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: I need to indexing the first character of a field in another field
:
: Hello guys
You can just do this with a copyfield in your schema.xml instead. Copy
to a field which uses regexpfilter or some other analyzer to limit to
first non-whitespace char (and perhaps force upcase too if you want).
That's what I'd do, easier and will work if you index to Solr from
something other
You can use regular expression based template transformer without writing a
separate function. It's pretty easy to use.
On Mon, Oct 18, 2010 at 2:31 PM, Renato Wesenauer <
renato.wesena...@gmail.com> wrote:
> Hello guys,
>
> I need to indexing the first character of the field "autor" in another
>
How are you declaring the transformer in the dataconfig?
On Mon, Oct 18, 2010 at 6:31 PM, Renato Wesenauer <
renato.wesena...@gmail.com> wrote:
> Hello guys,
>
> I need to indexing the first character of the field "autor" in another
> field
> "inicialautor".
> Example:
> autor = Mark Webber
>
Hello guys,
I need to indexing the first character of the field "autor" in another field
"inicialautor".
Example:
autor = Mark Webber
inicialautor = M
I did a javascript function in the dataimport, but the field inicialautor
indexing empty.
The function:
function InicialAutor(linha)