Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Source editor is displayed when clicking on Source editor from the Manager interface.

Image Removed

 Image Added

 

 

 

 

Description:

...

FieldDescriptionNotes
   
Filter Window

The "Filter" text box will by default search the source titles, but it can also search the following fields:

  • URL: type "url:<url fragment>" 
    • (note that URLs from the processing pipeline or feed configuration objects won't be searched unless you are currently editing them).
  • Community IDs: type "community:<community-id>"
  • ID: type "id:<source _id field>"
  • Tags: type "tags:<tag fragment>"
  • key, title, description, mediaType and extractType: use the same "fieldName:<field value fragment syntax>"
    • (note title is the default if no prefix is specified)
  • Suspended sources:
    • "suspended:true" to see manually suspended tasks
    • "fullQuarantined:true" to see unauthorized sources (this can happen automatically because they error too much, or if they are disabled by an administrator)
    • "tempQuarantined:true" to see sources quarantined for the day (because of a possibly transient source error)
 
   

Editor Window

The editor window displays the source code for editing.

Image Added

Description:

FieldDescriptionNotes
JSONthis is the full source including all fields 
New Source Pipeline
  • "JS" - The global script that all other elements can use - all of the logic can be written in here as separate functions, and then the scriptlets in other pipeline elements can be simple calls to these functions, to maximize the maintainability of the code in the source.
 
  • "LS" - If generated Logstash sources, you can write the configuration directly into here
 
  • "UI" (currently only supported in the enterprise build) - brings up the source builder GUI
 
   
Legacy Sources
  • "JS-U" - the Unstructured Analysis Module allows content to be transformed by "scriptlets" (xpath/regex/javascript) into document metadata. This view shows only the javascript maintained in "unstructuredAnalysis.script" - all of the logic can be written in here as separate functions, and then the scriptlets can be simple calls to these functions, to maximize the maintainability of the code in the source.
 
  • "JS-S" - the Structured Analysis Module allows content to be transformed by "scriptlets" (xpath/regex/javascript) into document metadata. This view shows only the javascript maintained in "structuredAnalysis.script" - all of the logic can be written in here as separate functions, and then the scriptlets can be simple calls to these functions, to maximize the maintainability of the code in the source.
 
  • "JS-RSS" - (only visible if the "searchConfig" field of "rss" is specified; use "Save Source" to reset visibility if it changes during editing) the Feed Harvester can use javascript (and xpath) to create multiple documents out of a single received feed. This view shows only the javascript maintained in "rss.searchConfig.globals" - all of the logic can be written in here as separate functions, and then the scriptlets can be simple calls to these functions, to maximize the maintainability of the code in the source.