I have crawl some website with nutch and and index it with solr.Now i would like to pass these data to drupal and take use of there search interface.
Most of the tutorial only show indexing from drupal to solr but not from solr to drupal.
So how can i go about passing already indexed data from solr to drupal?
You would need to build a custom module to query your Solr index using the solr HTTP API, then present the results using Drupal theming and render API.
I guess the reason why all tutorials say that is because that's the only possible direction. Solr is a search engine and it's not supposed to be a "source" system for feeding another storage (like a ln RDBMS): things are supposed to be exactly in the opposite way (e.g. Nutch --> Solr, RDBMS --> Solr)
Related
I'm struggeling to find an answer, because I'm not really sure if this is a Drupal, GraphQl or Gatsby question.
I'm building a portfolio-site with Gatsby.js and Drupal-8 as datasource (via gatsby-source-drupal).
GraphQl queries for Nodes, Taxonomy, Users, eg are working without problems.
But I can not access my created Views at my API-endpoint.
I have created a working Views-Page with a path.
I also exposed the data as a Block.
Tried a REST-Export as serialized JSON, but I can not get it working with JSON:API and JSON-Views-Module.
I expect to access the data from my View at my /jsonapi/endpoint, but my Views are not showing up.
I can't get my head around this. What am I missing? Is it even possible? Thanks!
TL;DR; You can't (from Drupal's JSON:API docs Unlike the REST module that comes with Drupal Core, JSON:API does not export Views results)
How to get filtered results
gatsby-source-drupal only fetches from the JSON:API endpoint (by default /jsonapi).
The way I see you can, kind of, emulate what Views does is using the filters options that gatsby-source-drupal provides.
The JSON:API Extras module for Drupal allows you to set some defaults filters as well.
Drupal documentation about filters
Example: ?filter[field_name]=value&filter[field_other]=value
Best!
With the JSON:API module you can not get views indeed, but there is also the GraphQl module and for your purpose the GraphQl views module that can make a view available to create a custom graphql schema. Good luck
I am working on integration of alfresco with drupal. I found the cmis drupal module.
where there is cmis sync module which can sync the content of drupal node to alfresco content type.
I want my alfresco to store my assets (images , videos etc). I want a module which allows me to sync my assets of drupal with alfresco content?
Can anyone suggest a workaround for it??
Thanks
EDITWell, I have not checked what are the features avilable in the module you are using but I had previous experience of integrating Alfresco and Drupal.
What I had done is exposed Alfresco repository to Drupal via Webscripts, response from my webscripts are consumed by Drupal and rendering logic is resides in Drupal.
Now in your case if you want to use Alfresco contents in your Drupal site there are already Out of Box set of CMIS services available in Alfresco which will serve you the content from alfresco repository.For checking details regarding that you can refer following links
http://cmis.alfresco.com/
http://blogs.alfresco.com/wp/cmis/
I hope this will guide you. Let me know if any thing is not clear to you.
EDIT: just now checked this
https://drupal.org/project/cmis
If you are using this as per description it should provide bidirectional sync of contents.
The sync is meant to sync the body field from a page node into the content stream of an Alfresco node (and back). When we created the module originally we assumed that if you wanted to manage binary objects in Alfresco you'd just use the Alfresco interface to manage those instead of uploading those in Drupal and sync-ing them across.
I am currently using the Drupal feed aggregator built-in module to aggregate a bunch of RSS feeds. I also have the Twitter module installed. I want to set things up so that all the new posts from the feed aggregator get sent out to twitter, but unfortunately the twitter module doesn't allow for that right now. Does any one know of another way to do this or a work around? I know I can create a custom module to do this but didn't want to go down that road unless I had to
My understanding of the Twitter module (it's been a while since I've used it) is that it will send out notifications to Twitter on new node creation or update. Would you be interested in the Feeds module as an alternative to the core aggregator in Drupal? That would create nodes from each feed item, instead of the Aggregator, which only creates database entries that expire. The Feeds module approach would create nodes, which would then theoretically automatically ping Twitter. See also http://drupal.org/node/403274 which I think is a similar feature request.
I am developing a website with a specific content type in Drupal: I use CCK to define this content type.
I also need an advanced search form to give the site visitors doing their search based on any fields of this content type. but i have no idea about implementing it.
Would someone help me?
CCK provides filters to the Views module, so you could use a view to at least come close to what you want (I don't know if a full text search is possible using this approach).
drupal.org itself uses Apache Solr Search Intergration. Apache Solr Search Intergration requires Apache Solr. If you do not do not have the means to set up Apache Solr (or do not want to for some other reasons), you can use an instance of Apache Solr provided by Acquia (called acquia search).
I know Drupal has built in search module, but I want more flexibility and control. Is it possible using Views to create the search form and results pages?
Sure. There's two ways. One is to use Views filters: just create the view for the results page, add a filter, and expose the filter. You can create a search block by checking the option to create a block for the exposed form in the Views settings. Load the Advanced Help module for more information about Views filters.
The other way is to use Apache Solr and the Apache Solr Views module. Same idea as just using Views filters, but it'll use the Solr search backend instead of just doing SQL queries to the database.