Solr dataimporthandler - read tab delimited file data source to add fields -
I have a table in the database that has some properties about different objects.
I have another data source with a file and data like this -
itemcode warehouse code warehouse type abc 123 black ABC 456 white xyz 444 black
I can load all the data from the database using a DataMod handler, the SLR index. Is there any way to update all the documents in the index to include related warehouse and warehouse type? Here's my data-config.mml -
& lt; The name of the datasource is "itemdb" type = "jdbcDataSource" driver = "org.postgresql.Driver" url = "jdbc: postgresql: // server: 5432 / ITDB" user = "alice" password = "endland" /> ; & Lt; Data source name = "places_file" type = "file data source" /> & Lt; Document name = "item_properties" & gt; & Lt; Entity name = "e_item" data source = "itemdb" pk = "iCode" query = "get_all_item_properties ()" & gt; Choose from * & lt; / Unit & gt; & Lt; Unit name = "e_itemplaces" processor = "lineInteactus processor" url = "/ file_data.txt" data source = "places_file" separator = "\ t" root entity = "fottal" header = "true" & gt; & Lt; / Unit & gt; & Lt; / Documents & gt;
This file does not load in sulter, says log -
Using the file: /file_data.txt - The import was successfully completed
But I only get the field from JDBCSR.
Comments
Post a Comment