- Community Home
- >
- Software
- >
- Products
- >
- Big Data
- >
- IDOL
- >
- IDOL Practitioners Forum
- >
- Indexing a web service rest with IDOL
-
Communities
-
Blogs
-
Quick LinksProtect724English
Indexing a web service rest with IDOL
SOLVED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-04-2018 12:15 PM
02-04-2018 12:15 PM
Hi,
I am a beginner with IDOL.
I need to index a service rest (json) with IDOL v11. what is the best connetor to use. I tried with the httpConnector, but I can not get the json in the IDOL document. have an example of config to index from json ?
thanks.
regards.
chris
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-09-2018 05:38 AM
02-09-2018 05:38 AM
SolutionHello ChrisSG,
I belive that you can use WebConnector or HttpConnector due to the request is via http request.
Then, to split the json files on different documents, you need to set the CFS with TextToDocs or a lua scritp in order to, specify how to handle that files.
If you require further assistance, please feel free to open a ticket on the software support portal.
Kindly regards.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-05-2018 09:07 AM - edited 02-05-2018 09:10 AM
02-05-2018 09:07 AM - edited 02-05-2018 09:10 AM
Re: Indexing a web service rest with IDOL
Re: Indexing a web service rest with IDOL
Hello ChrisSG,
Thanks for contacting Micro Focus SW community,
Could you please confirm the following:
- Are you trying to index a .json file?
- Is the file in your local system or network location (Like share folder or Internet)?
Regards.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-07-2018 11:48 AM
02-07-2018 11:48 AM
Re: Indexing a web service rest with IDOL
Re: Indexing a web service rest with IDOL
Hello ChrisSG,
I would like to know if you had a chance to check my last reply?
Please remember that a if the files is located in a network place or in the physical location you can use the FilesSystem Connector.
I mean, if the files are on "\\ServerName\ArchiveDocuments\testFile.json" or "C:\ArchiveDocuments\testFile.json" the FileSystem Connector is a good idea. However, if the files is on a web page you can use WebConnector or HTTPConnector.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-07-2018 02:41 PM
02-07-2018 02:41 PM
Re: Indexing a web service rest with IDOL
Re: Indexing a web service rest with IDOL
Hello Tomasenc,
Thank you for your answer. My JSON file is available through an HTTP request. My file consists of a list of IDs/names that I would like to index by creating a DREREFERENCE by ID.
Here's a part of my JSON :
[{"id":285,"actif":1,"critique":0,"device":"desktop","informationMessage":null,"marche":"particuliers professionnels entreprises","name":"Archivage","recherche":"archives clients comptabilité","shortname":"Archivage","trigramme":"ARC","typeAppli":"Psystem","url":null,"utilisateur":"agence fonctionnel","categories":[{"id":2,"name":"données clients"}]},{"id":286,"actif":1,"critique":0,"device":"desktop","informationMessage":null,"marche":"particuliers professionnels entreprises","name":"Arrêtés de compte","recherche":"arrêtés agios intérêts ","shortname":"Arrêtés de compte","trigramme":"ARR","typeAppli":"Psystem","url":null,"utilisateur":"agence fonctionnel","categories":[{"id":2,"name":"données clients"}]}]
I would want 2 documents :
DREREFERENCE="id=285" DRETITLE=Archivavge DEVICE=desktop ....
DREREFERENCE="id=286" DRETITLE=arrêté de compte DEVICE=desktop ....
Is that possible? How to do it?
thanks
best regards
Christophe.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-09-2018 05:38 AM
02-09-2018 05:38 AM
SolutionHello ChrisSG,
I belive that you can use WebConnector or HttpConnector due to the request is via http request.
Then, to split the json files on different documents, you need to set the CFS with TextToDocs or a lua scritp in order to, specify how to handle that files.
If you require further assistance, please feel free to open a ticket on the software support portal.
Kindly regards.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2 weeks ago
2 weeks ago
Re: Indexing a web service rest with IDOL
Re: Indexing a web service rest with IDOL
The HTTP Connector and Web Connector may work for simple REST APIs where the parameters are static, but both are built for spidering web sites and following URLs. They don't really have the capability for the developer to modify parameter values in order to iterate through a result set from a web service.
Your best bet is the Social Media Feed Connector. The Social media feed connector works by calling the various web service APIs of sites like Facebook, Twitter, and the like, but it's really the connector itself is really a framework where a developer can call any REST API that returns XML or JSON.
The limitation to the Social Media Feed Connector is if the web service is protected in some way by OAuth or other form of authentication. The out of the box authorization dlls are designed specifically for the various social media sites, so they won't work when re-used for a custom web service. In that case, you might need to create a proxy service or you will have to look at the Java Connector libraries.
-
Tomasenc
on: Index a site in AngularJS with # in the URL
- kstoltz on: Indexing a web service rest with IDOL
- Vertica Team on: HPE Smart Analytics Pre-requisite software in RHEL 7.2
- Vertica Team on: In Vertica need similar kind of information like LogonSource column in Teradata