how to post file in Solr using java code - solr4

I am trying to post/uplooad a file to Solr using java code by passing suitable input.
So is there any such options/method to implement it in Solr 4.7.2.

You can use Solrj, here are some links from a previous answer:
Solj tutorial
Indexing with Solrj
Solrj example
Using Solrj – A short guide to getting started with Solrj
More links:
https://cwiki.apache.org/confluence/display/solr/Using+SolrJ

Related

Orocommerce - generate API client libraries

I am quite new in the orocommerce ecosystem, and I would like to generate API client librairies automatically for orocommerce API (frontend and backend). The objective is to build my own UI.
I found some dependencies on NelmioApiDocBundle than could potentially generate swagger file, but I hit multiple problems:
this is a quite old version, that only support swagger 1.2
the generated file (using symfony run php bin/console api:swagger:dump /tmp/api/) seems not working with swagger codegen "as is"
all the part of the API seems not written using NelmioApiDocBundle annotation
I am wondering if there is an other mechanism to generate API client librairies for orocommerce. I would like a SDK for typescript.
Thanks in advance for your answer.
Right now, the only supported swagger version is 1.2, as you stated.
By default, the api:swagger:dump command works with an outdated API, to generate data for the current API, run it with --view=rest_json_api option:
api:swagger:dump --view=rest_json_api
As an alternative to the API client generation, as Oro API strictly follows JSON.API standard, you can use many existing client libraries, compatible with the JSON.API specification. The list of Typescript implementations can be found at the official website: https://jsonapi.org/implementations/#client-libraries-typescript

How to make use of .jsp LDAP code and other java files in ruby on rails?

I am very exited to join this community. Here is my problem.
I am doing a project in ruby on rails which basically is to develop an interface to take applications from people then run some algorithm like Gale-Shapely for example in background after deadline and then output the results in a new page. I had the gale shapely algo coded in Java and C++ languages. The problem is we have to contact LDAP server in our institute in-order to verify the credentials of the person who is willing to fill the form. And there is a proper Java code written for that purpose which should only be used in order to contact LDAP server as per our insti rules. I ran the .jsp code by installing tomcat7 and it is working perfectly. But, now the problem I had written some code for filling form etc.. in ruby on rails. But, I am not able to use this .jsp file in the login form in rails. I searched a lot on net but I didnt found any.
Apart from this another problem is how to run my java Gale-Shapely code in background? One solution is again re-writing the entire code in ruby and use database info to run algo. Is there any method that I can give my database info to this java program and capture its output?
I solved this by using netldap gem present in rails. I realized that similar to the java code which uses an LDAP library, there is this netldap library in ruby. So, I used it to get the credentials and verify the identity of person and also to get other details from LDAP server.

Implementing xoai 4.x

I would like to implement a standalone oai-pmh version 2 data provider server using xoai 4.1.x without DSpace.
Can anyone direct me to any documentation for doing this or to a reference implementation?
Thanks
David
Its posible, but you will need a repository to manage the contents that oai serve.
You should check https://github.com/lyncode/xoai/wiki for help and https://github.com/lyncode/xoai to get the code.

glib dbus service example using dbus-binding-tool?

I'm looking for a full example using the glib dbus support suggested by Freedesktop.org here (http://www.freedesktop.org/wiki/Software/DBusBindings/), and dbus-binding-tool.
I looked here, https://developer.gnome.org/gio/2.26/GDBusServer.html, but this isn't using a server header file generated by dbus-binding-tool and also looked here, http://dbus.freedesktop.org/doc/dbus-tutorial.html#glib-server, but this tutorial is using the deprecated dbus-glib interface...
It looks like you need gdbus-codegen, for which there is a full tutorial in the man page.

How to call the Rest Api that is present in Solr from Grails?

I m trying to fetch the Rest API(i.e Autocomplete/spell check etc) that is present in LWE/solr from the Grails Frame Work,
But I am not getting how to do that,if any one can help me
Thanks in Advance. ..
There is a solr plugin that interface with a solr installation.
http://grails.org/plugin/solr
Best way to programmatically invoke SOLR is to use the SOLRJ API

Resources