|
Re: Validate adding a new attribute works [message #755703 is a reply to message #755670] |
Wed, 09 November 2011 10:43 |
Juergen Schumacher Messages: 35 Registered: July 2009 |
Member |
|
|
Hi,
Am 09.11.2011, 10:13 Uhr, schrieb Stephan Mehlhase
<stephan.mehlhase@eml.org>:
> I'm writing a pipelet for SMILA and adding a new Attribute using
>
> blackboard.getMetadata(id).put(attrName, value);
>
> in the process() method. With the search website activated in the 5
> minutes to success I can't see the new attribute. How can I verify the
> attribute is indeed added to the record? Is there a REST API which I can
> use?
To see a new attribute in the result list, you must add it to the index
configuration:
* configuration/org.eclipse.smila.search.datadictionary/DataDictionary.xml
* configuration/org.eclipse.smila.lucene/Mappings.xml
and to the list of "resultAttributes" in the XSL stylesheet producing the
result page:
* configuration/org.eclipse.smila.search.servlet/SMILASearchDefault.xsl
(or SMILASearchAdvanced.xsl, if you use this one)
Then after rebuilding in the index you should see the new attribute.
Depending on what you are doing exactly you may be able to test your
pipeline using the
REST API by POSTing an appropriate record to
/smila/pipeline/<pipelinename>/process, then
you should see in the result if the attribute was set. However, this will
currently not help
if you are using attachments, because you can't add them to the request.
We are working on this (;
Cheers,
Jürgen.
|
|
|
Re: Validate adding a new attribute works [message #755903 is a reply to message #755703] |
Thu, 10 November 2011 06:39 |
Stephan Mehlhase Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Hi,
thanks. It worked :)
Best,
Stephan
On 11/09/2011 11:43 AM, Juergen Schumacher wrote:
> Hi,
>
> Am 09.11.2011, 10:13 Uhr, schrieb Stephan Mehlhase
> <stephan.mehlhase@eml.org>:
>> I'm writing a pipelet for SMILA and adding a new Attribute using
>>
>> blackboard.getMetadata(id).put(attrName, value);
>>
>> in the process() method. With the search website activated in the 5
>> minutes to success I can't see the new attribute. How can I verify the
>> attribute is indeed added to the record? Is there a REST API which I
>> can use?
>
> To see a new attribute in the result list, you must add it to the index
> configuration:
> * configuration/org.eclipse.smila.search.datadictionary/DataDictionary.xml
> * configuration/org.eclipse.smila.lucene/Mappings.xml
> and to the list of "resultAttributes" in the XSL stylesheet producing
> the result page:
> * configuration/org.eclipse.smila.search.servlet/SMILASearchDefault.xsl
> (or SMILASearchAdvanced.xsl, if you use this one)
> Then after rebuilding in the index you should see the new attribute.
>
> Depending on what you are doing exactly you may be able to test your
> pipeline using the
> REST API by POSTing an appropriate record to
> /smila/pipeline/<pipelinename>/process, then
> you should see in the result if the attribute was set. However, this
> will currently not help
> if you are using attachments, because you can't add them to the request.
> We are working on this (;
>
> Cheers,
> Jürgen.
--
Stephan Mehlhase
European Media Laboratory GmbH
Schloss-Wolfsbrunnenweg 35
69118 Heidelberg
Amtsgericht Mannheim / HRB 335719
Managing Partner: Dr. h. c. Dr.-Ing. E. h. Klaus Tschira, Scientific and
Managing
Director: Prof. Dr.-Ing. Andreas Reuter
http://www.eml-development.de
Testen Sie auch unsere neue Android Applikation zur Mediensteuerung:
http://market.android.com/search?q=pname:org.eml.upnp
|
|
|
Powered by
FUDForum. Page generated in 0.03019 seconds