Re: DIH field defaults or re-assigning field values

2013-09-24 Thread P Williams
I discovered how to use the ScriptTransformer which worked to solve my problem. I had to make use of context.setSessionAttribute(...,...,'global') to store a flag for the value in the file because the script is only called if there a

Re: DIH field defaults or re-assigning field values

2013-09-18 Thread Alexandre Rafalovitch
You could also do this in request update processor. There is a default value one there. Also, I think field definition in schema allows defaults. Regards, Alex On 19 Sep 2013 02:20, "P Williams" wrote: > Hi All, > > I'm using the DataImportHandler to import documents to my index. I assign >

DIH field defaults or re-assigning field values

2013-09-18 Thread P Williams
Hi All, I'm using the DataImportHandler to import documents to my index. I assign one of my document's fields by using a sub-entity from the root to look for a value in a file. I've got this part working. If the value isn't in the file or the file doesn't exist I'd like the field to be assigned