Page tree

Versions Compared

Key

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

...

2. Copy the configuration.properties.js file to the project directory

By default, the configuration.properties.js file used by Search UI is placed in the <install-dir> <INSTALL_DIR>/resources/searchui directory. Instead of editing the file in this location, it is recommended that you copy the file to the same relative path under your project's home directory. The file in the project directory will be used in preference to the file in the installation directory, leaving the original version intact.

Attivio project directories include a <project-dir><PROJECT_DIR>/resources directory by default, but you will need to create the <project-dir><PROJECT_DIR>/resources/searchui sub-directory. Once you have done so, copy the file found at

Code Block
languagetext
themeDJango
<install-dir><INSTALL_DIR>/resources/searchui/configuration.properties.js

...

Code Block
languagetext
themeDJango
<project-dir><PROJECT_DIR>/resources/searchui/configuration.properties.js

3. Edit configuration.properties.js

Open the <project-dir> <PROJECT_DIR>/resources/searchui.configuration.properties.js file in a text editor.

cardid
Deck of Cards
idproperties
tabLocation
left


properties1
Card
labelStep 1Uncomment entity fields

Remove the comments from the following lines in the file:

Code Block
languagetext
themeDJango
      // spokenLanguage: 'Spoken Languages',
      // resource: 'Resources',
      // climate: 'Climate',
      // ethnicity: 'Ethnicities',
      // country: 'Country', 



Step 3
Card
idproperties2
labelStep 2Modify facet settings
idproperties3
label

Locate the following block of code:

Code Block
languagetext
themeDJango
    facets: [
      'position',
      'keyphrases(maxbuckets=15)',
      'table',
      'tags',
      'company',
      'people',
      'location',
      'date(sortby=VALUE,maxbuckets=60,dateIntervals=auto)',
    ], 

Modify the above block of code to match the following: Multi level facets can be applied only with installer version 5.6.1 and search module of version 1.0.7.

Code Block
languagetext
themeDJango
    facets: [
      'position',
      'keyphrases(maxbuckets=15)',
      'table',
      'tags',
      'company',
      'people',
      'location',
      'date(sortby=VALUE,maxbuckets=60,dateIntervals=auto)',
	  'spokenLanguage',
	  'resource',
	  'climate',
	  'ethnicity',
	  'country',
      'table(childFacet=country(childFacet=language))',  //adding multi level discrete facets
	//'table(childFacet=.fields(childFacet=size(filter=small(\"size:>120\"))))', //adding schema at level 2 and filter at level 3
    //'size(range=(\"< 150 \",0,150), range = (\"> 150 \",150,600),sortBy=COUNT, primarySort=ASC, minBucketCount=10, childFacet=table)', //range facet with sort and minBucketCount defined.
    ],
Card

(The childFacet functionality is available in Attivio Platform 5.6.2 and later releases; omit the final three entries above if you are using Attivio Platform 5.6.1.)


Card
labelEdit chart facets

Locate the line of code that begins with:

Code Block
languagetext
themeDJango
  SearchUIInsightsPage: {

Edit the lines of code below this line to match the following:

Code Block
languagetext
themeDJango
     pieChartFacets: [ // The facet field names that should be displayed as pie charts
	  'table',
    ],
    barChartFacets: [ // The facet field names that should be displayed as bar charts
	  'company',
	  'people',
	  'location',
	  'spokenLanguage',
	  'ethnicity',
	  'country',
    ],
    columnChartFacets: [ // The facet field names that should be displayed as column charts
	  'resource',
	  'climate',
	  'language',
	  'languages',
    ],



properties4
Card
id
labelStep 4Uncomment insight graph linking fields

Remove the comments from the following lines in the file:

Code Block
languagetext
themeDJango
    insightGraphLinkingFields: [
...
      // 'country',
      // 'spokenlanguage',
      // 'resource',
      // 'climate',
      // 'ethnicity',
    ],



properties5
Card
id
labelStep 5Save and close file

Save and close the file.


4. Deploy the changes

We've made several changes to the Search UI configuration. We must open the CLI and deploy these changes and restart our project to apply these changes.

cardid
Deck of Cards
idcli
tabLocation
left


cli1
Card
labelStep 1Open the AIE-CLI

Open the AIE-CLI

Code Block
languagetext
themeDJango
<install-dir>/bin/aie-cli -p C:\attivio\projects\Factbook 



cli2
Card
id
labelStep 2Deploy project configuration changes

Deploy our changes and trigger a restart of the node. Type the deploy command and hit Enter.

Once the CLI reports the node as RUNNING again, move onto the next step. You can monitor the project by executing the status command.


...