Setup "Configure your domain's dataspects Search indexing, querying and presenting"

From SMW CindyKate - Main
Component1663539245
Jump to: navigation, search

Content



"{{{1}}}" contains the "{" character as part of a property label and has been classified as invalid.


"{{{1}}}" contains the "{" character as part of a property label and has been classified as invalid.

Your dataspects Search Workstation

[email protected]:/home/user/dataspectsOntologyEngineering/
├── document_mappings
│   └── documentMappings.rb
├── index_settings
│   └── indexSettings.rb
└── jobs
    ├── performIndexing.rb
    └── resetIndex.rb

Your Elasticsearch Server

[email protected]:/home/dataspects/
├── dataspects
├── dataspectsMainAPI
├── dataspectsPlugins
│   ├── mySearchEngine
│   │   ├── elasticsearch_hit.rb
│   │   ├── html_components.rb
│   │   ├── result_for_term_in_facet.rb
│   │   └── search_interface_component.rb
└── dataspectsSearch_config.yml
# dataspectsSearch_config.yml
---
dataspectsESCluster: xx.xx.xx.xx:9200
sIndexName: yourIndex1
sPluginURLs: [
  'dataspectsPlugins/mySearchEngine'
]

Your SMW Server

SMW-integrated Search Interface

[email protected]:/var/www/html/w/extensions/DataspectsSearch/
├── dataspectsSearch_config.js
└── dataspectsSearchHTMLInterface
    └── dataspectsSearchThemeStandard
        └── dataspectsSearch.css
// dataspectsSearch_config.js
var h_dataspectsSearchConfig = {
  url_dataspectsSearchSinatraAPI: '',
  sSearchServerRootURL: 'https://YourWiki/wiki/Special:DataspectsSearch',
}
// https://YourWiki/wiki/MediaWiki:Common.js
 $(document).ready(function() {
   $('#searchform').on('submit', function(e){
     e.preventDefault();
   });
   $('#searchInput').on('keypress', function(e) {
     var code = e.keyCode || e.which;
     if(code==13) {
       window.location.href = '<nowiki>https://YourWiki/wiki/Special:DataspectsSearch/</nowiki>'+$(this).val();
     }
   });
 });