I have a MySQL table:
CREATE TABLE documents (
id INT NOT NULL AUTO_INCREMENT,
language_code CHAR(2),
tags CHAR(30),
text TEXT,
PRIMARY KEY (id)
);
I have 2 questions about Solr DIH:
1) The langauge_code field indicates what language the text
I think a custom transformer would be of help in these scenarios
http://wiki.apache.org/solr/DIHCustomTransformer
http://wiki.apache.org/solr/DIHCustomTransformerCheers
-- Imran
On Sat, Nov 13, 2010 at 8:55 PM, Andy angelf...@yahoo.com wrote:
I have a MySQL table:
CREATE TABLE documents (
' to be a
multivalued field in Solr. [1]
[1]http://wiki.apache.org/solr/DataImportHandler#RegexTransformer
--- On Sat, 11/13/10, Andy angelf...@yahoo.com wrote:
From: Andy angelf...@yahoo.com
Subject: DIH for multilingual index multiValued field?
To: solr-user@lucene.apache.org
Date
On Sat, Nov 13, 2010 at 4:56 PM, Ahmet Arslan iori...@yahoo.com wrote:
For (1) you probably need to write a custom transformer. Something like:
public Object transformRow(MapString, Object row) {
String language_code = row.get(language_code);
String text = row.get(text);
On Sat, Nov 13, 2010 at 5:59 PM, Ken Stanley doh...@gmail.com wrote:
CREATE TABLE documents (
id INT NOT NULL AUTO_INCREMENT,
language_code CHAR(2),
tags CHAR(30),
text TEXT,
PRIMARY KEY (id)
);
I apologize, but I couldn't leave the typo in my last post