Newsfeeds

Paizo Looks at What is and isn’t Common in Pathfinder 2.0

Tabletop Gaming News - 16 July 2018 - 7:00am
This one’s a bit more cerebral in nature. Paizo has posted another preview of the upcoming Pathfinder 2.0 rules, this one focusing on what is and isn’t common in the game. But more than that, it’s kind of a breakdown of what it means for things to be common and not in certain settings. From […]
Categories: Game Theory & Design

Cultist Simulator: the retrospective - by Lottie Bevan

Gamasutra.com Blogs - 16 July 2018 - 7:00am
The postmortem for Alexis Kennedy's 1920s Lovecraftian card game Cultist Simulator, an indie success story for 2018.
Categories: Game Theory & Design

Composing video game music for Virtual Reality: Comfort versus performance - by Winifred Phillips

Gamasutra.com Blogs - 16 July 2018 - 6:59am
The 4th of a 4-part series. Video game composer Winifred Phillips shares ideas from her GDC 2018 talk, Music in Virtual Reality. Part 4: Comfort versus performance, with a discussion of composition & recording methods to address the VIMS problem.
Categories: Game Theory & Design

Through Another's Eyes - How Different Players Perceive the Same Card Game - by Nicholas Kinstler

Gamasutra.com Blogs - 16 July 2018 - 6:58am
Though we view our games as a single item, no two people see the same game. In this article, Nicholas Kinstler explains how players can perceive the same game in different ways and provides some insight on how to account for variations in perception.
Categories: Game Theory & Design

Create Scriptable Objects with Unity - by Vivek Tank

Gamasutra.com Blogs - 16 July 2018 - 6:58am
The main objective of this blog post is to give you an idea about ScriptableObject in Unity.
Categories: Game Theory & Design

Sometimes making a game is part of a longer game plan! - by Murray Lorden

Gamasutra.com Blogs - 16 July 2018 - 6:54am
Murray Lorden takes a retrospective look at the development of his third game B-Grade Renegade, and discusses how it represents part of a longer journey towards becoming a fully operational death sta... er, game developer, making the games of his dreams.
Categories: Game Theory & Design

Sometimes the making of a game is part of a longer game plan! - by Murray Lorden

Gamasutra.com Blogs - 16 July 2018 - 6:54am
Murray Lorden takes a retrospective look at the development of his third game B-Grade Renegade, and discusses how it represents part of a longer journey towards becoming a fully operational death sta... er, game developer, making the games of his dreams.
Categories: Game Theory & Design

Adomik Optimize

New Drupal Modules - 16 July 2018 - 6:29am

Drupal integration for Adomik’s automated price optimization.

See webpage Adomik Optimize

Principle

In order to split traffic and to be able to succesfully target the resulting groups, this solution relies on using Key Value targeting. Key Value targeting basically tags impressions with a label that is easy to target within the AdX rule engine. Key Value pairs have to first be set up in the DFP console and then applied to each impression by modifying the ad call to DFP from the web page.

Categories: Drupal

Fantasy Flight Announces New California Expansion for Fallout Board Game

Tabletop Gaming News - 16 July 2018 - 6:00am
New opportunities arise in New California, a new expansion that new Fantasy Flight (whoops, just kinda got on a roll there) is coming out with for their Fallout board game. There’s new characters, new monsters, new scenarios, new ways of playing. It’s just new, New, NEW! The New California expansion brings all-new challenges to the […]
Categories: Game Theory & Design

Arcknight Spell Templates, Plastic Miniatures, & Map – Review and Giveaway

Gnome Stew - 16 July 2018 - 5:00am

The Tarrasque’s (Kaiju Reaper miniature) giant base nearly covers one of the very large radius spell templates, and that’s pretty impressive.

Last year at Gen Con, I was given a slew of things by Josh Wardrop at Arc Knight Publishing to review for the Stew. I was in the middle of a move, a new job, and closing out my old web development company. The Spell Templates, Maps, and Flat Plastic Miniatures got stuck in a box and only unearthed a few months ago. I’m finally getting around to reviewing the work, and apologize for the delay in getting this out there. On the plus side, Arc Knight gave us so much stuff we’re going to be giving away MULTIPLE things with this review, so there are multiple chances to win. So, check out this picture heavy review and go to the bottom for info on how to get in on the giveaway!

What All We Are Reviewing

Arc Knight gave us 4 distinct things to review – 5e Spell Templates, Pathfinder Spell Templates, a selection of Flat Plastic Miniatures, and one of their Map Packs. I’ll break the review into 3 sections, detailing each separately but joining together the spell templates into one review. Arc Knight makes spell templates in both Pathfinder rules and 5e Rules variations, and they’ve got some unique elements to them.

(CLICK ON IMAGES TO VIEW AT LARGE SIZE)

Spell Templates

Let’s talk about the spell templates. The first time I saw these spell templates was when a friend brought them along to a game to use for his wizard. They immediately caught the attention of everyone in the group and worked well for the crunchy style of game we were playing at the time. All of the Arc Knight stuff is made with high quality and fairly thick plastic. It’s certainly not flimsy and it holds up well.

Cut It Out – The templates come in a large size and all have to be cut out. I posted up with my wife and a friend of ours one night and we took scissors to the templates. They cut well, and the thickness wasn’t too tough to get through, unless we were using very small scissors. A box cutter or x-acto knife would have made the work more precise, and that is what we used for some of the smaller ones, but it wasn’t any major pain to cut them out of their overall sheets.

Use In Game – I used a set of these in my own games (5e D&D) and they really added some flavor and engagement. We would often count out the spaces to figure out if a spell would reach, but placing the template on the table around the miniatures gave that level of immersion and engagement I like to get out of miniature heavy games. One square elements like the familiars, arcane eye, magic weapon, and mirror image worked well when we had a lot of elements on the table at once. Since they were flat (in comparison to our 28mm miniatures) they stayed out of the way and didn’t make the field feel too cumbersome. The line spells were more often than not always long enough to reach whatever was being aimed for, so we didn’t need to pull those out except for the large scale battles. Having a visual, well drawn lightning bolt to lay down on the map as it worked its way through multiple enemies really made the players feel like part of the game world.

Really Useful Notations – One incredibly useful thing about these templates is they have the basics of the spells right on them. Can’t remember if it’s a DEX or a CON save? It’s right there. can’t remember how many dice, it’s on the template. The lettering is easy to read and this extra detail takes it from a cool game aide to an incredible addition to your gaming chest.

Pathfinder – The pathfinder spell templates worked a little differently from the 5e ones, because of the difference in how they do squares. Arc Knight accommodated for that, giving two ways to read each line template, whether you were going straight or diagonal. These templates line up with squares on each correct angel, so you always know exactly which “square” it hits. It takes a lot of the ambiguity out of the rules lawyering that can occur in a very crunchy game. The multiple line spell template was great for giving different lengths and effects for different spells. It was a great detail.

Minor Annoyances & Transport – There are some very minor annoyances with using spell templates like this, but they would hold for any non-hollow spell template. If we wanted to get the templates on the table under miniatures, we had to pick up and move all the miniatures. We could hold the templates above and gauge the general distance and know they would hit, but if we needed to do it exact (say in pathfinder to see which of the large group it hit) we’d have to do a little shuffling of the board to get them all synced up. If your play style is crunchy, you’re used to that though, as every step matters.

The other very minor annoyance was the length of the long line spells, again nothing to do with the actual product. 120 feet in 1 inch squares is going to be what it is. I like to try to keep my gaming materials so that they can fit inside of an 8.5 by 11 inch envelope or folder for transport, but that wasn’t quite doable with some of these spell effects due to their size. With one set I engaged in some experimentation and cut and taped the bigger templates to be “foldable”. It worked out adequately enough and made the spell templates a little more managable for my particular usage scenario.

Final Verdict – I really like the immersion these provide, and the art is fantastic. It really adds something to be able to look at a table and see the mage’s spell effects interacting with the map. These spell templates make a very invisible gaming effect shine in the gameplay environment and in the players’ imaginations. I think the templates are worth the money if you are playing casters in D&D or just want something for your group to be able to share.

Update – Learn From My Mistakes, Remove The Film


Arcknight reached out to us to comment that the spell templates actually have an opaque white film layer that peels off. It’s a testament to the strength of the manufacturing that the film didn’t come off when we cut out multiple spell templates. Other pictures I’ve seen are completely clear, which is what I expected with the first review. Below you can see a mix of the original photos (with film on the templates) and some updated photos after I removed the film.

 

(CLICK ON IMAGES TO VIEW AT LARGE SIZE)

Flat Plastic Miniatures

The spell templates were something I had encountered before, but the flat plastic miniatures were something new to me, and I instantly fell in love with them. At first look, they seem to be a bit bigger than other miniatures, but put side by side they are in line with other gaming miniatures, painted and unpainted. The art on these is FANTASTIC! It’s detailed, expressive, bright, and really shows off the subjects. Each of these sets is packed as well, offering multiple miniatures for a fairly cheap price.

They don’t have the physical feel of Reaper or other molded or lead miniatures, but they look beautiful on the gaming mat. The art is just beautiful and it really makes the table look great. The clear backgrounds also don’t interfere in the same way white backgrounds on cardboard ones do. It’s easy to just forget the plastic see-through areas and to focus on the drawings. The plastic is hearty and strong as well. They don’t feel flimsy and the front and backs of the miniatures are drawn, so you know which way they are facing.

I’m probably spending a decent chunk of my Gen Con budget on getting a few sets of these for my collection.  The flat ones are great for travel and I run a lot of convention games.

(CLICK ON IMAGES TO VIEW AT LARGE SIZE)

 

Maps

The Arc Knight map pack we were given for the review was a robust set of 8 pages that had multiple sides. They had a 1 inch grid that was very light but easy to use and didn’t interfere with the art, although I’ve gotten used to seeing grids rather than points at the edges from my own games. The quality of the maps are good and sturdy and the art is in line with other digitally designed maps out there. The mix and match options connect together well, and one map page is large enough to comfortably handle a lot of dungeon crawl.

The maps aren’t 100% seamless, so one page may not sync up quite how you want it with another one, but that is easy enough to mitigate. They definitely beat the dry erase maps I pull out of thin air. These pages are dry erase friendly, so you can easily make modifications or add things as needed. Overall, a very nice map set that will work well for your games and stay strong for years to come.

(CLICK ON IMAGES TO VIEW AT LARGE SIZE)

Giveaway

Okay, let’s give some stuff away! We’ll be splitting our review set up into multiple sets to spread the love as much as possible. There will be 5 prizes for this giveaway.

  1. A full uncut set of 5e Wizards spell templates
  2. A full uncut set of the Pathfinder Spell Templates (A few of these were cut out for the review, but most pages remain uncut.)
  3. Another full set of 5e Wizards spell templates (The one we used for the review.)
  4. The Grove’s Horde plastic miniatures & The Spider Queen’s Horde plastic miniatures
  5. The Winding Caverns Map Pack

To enter, all you have to do is leave a comment on this blog post with a valid email between 07/16/2018 and 07/23/2018. We’ll be randomly selecting (by die roll or random generator) 5 winners to take home one of these review copies.

Some disclaimers:

  • We can’t give you a choice of review item, unfortunately. We’ll pick an option, roll the die, and give that person the review item.
  • If you live outside of the U.S. and the shipping is prohibitively expensive (over $15), we may ask you to cover shipping.
    • These are LARGE items and we’ve paid 3 times in shipping what a product is worth in some of our giveaways. We think the flat nature of these will make them fairly cheap to ship, but we wanted to warn this might happen. We don’t want to prohibit our international readers from being eligible, and we’ll do our best to work out all the details and not have to ask you to cover shipping if we can afford it.

So, leave a comment, let us know what mapping options you like or if you’ve used spell templates like these, and best of luck in the giveaway!

Categories: Game Theory & Design

Dropsolid: Our Dropsolid CTO featured on the Modern CTO Podcast

Planet Drupal - 16 July 2018 - 4:29am
16 Jul Our Dropsolid CTO featured on the Modern CTO Podcast Nick Veenhof Drupal Drupal conferenties

Recently, I was invited to go on the Modern CTO podcast as a guest. We talked about developer culture, how to measure efficiency and velocity and, more importantly, how you can make the teams as independent as possible without losing that team and company feeling.

Modern CTO is the place where CTOs hang out. Listen in on our weekly podcast while we hang out with interesting Fortune 500 CTO’s in Aerospace, Artificial Intelligence, Robotics + Many more industries. As of 2018: 72k listeners we are incredibly grateful to each and everyone one of you.

It was a real honour to talk to Joel Beasley and have this back-and-forth conversation about how we transformed Dropsolid into a great place to work, but measurable and technically innovative!

 

 

Some of the topics that we talked about in the podcast were also seen at the presentation I gave at Drupal Developer Days in Lisbon.  Feel free to scroll through the slides to get more context out of the podcast!

 

Drupal Developer Days - One Flew Over The Developers Nest 2018 by Nick Veenhof
Categories: Drupal

Json Scanner Block

New Drupal Modules - 16 July 2018 - 4:12am

This module is useful for theme developer and backend developer. It provides a way from which you can give link of any JSON data, and it provides you global variable, to which you can use in templates to access your json divided in mannered array. You can print your json data in Drupal without writing any code.

The name of the module is Json Scanner Block which is not providing any block, it provides you block of code(variable) through which you can access your json variables for printing purpose converted through JSON urls.

Categories: Drupal

Castle Falkenstein: Variations on the Great Game

New RPG Product Reviews - 16 July 2018 - 3:12am
Publisher: Fat Goblin Games
Rating: 5
An Endzeitgeist.com review

Ladies and gentlemen, I bid you once more welcome in my lounge! Please, do take a seat, as I want to show you a thing most intriguing; surely, you recall the little pieces of intangible ephemera that we tend to conjure to diversify the experience of engaging in the Great Game?


Well, this little booklet now, for the first time, compiles these ephemera, while, as I was told by my servants, also getting rid of some of the minor imperfections previously noted by astute dignitaries, personas and individuals of staunch character and stellar pedigree. At 48 pages, 4 less once you subtract covers and similar components, we have a rather hefty little tome.


Oh yes, I wholeheartedly concur, my dearest. As you can see after reading Tom Olam’s introductory text (which is situated, mind you, on the page denoting the contents), the entrepreneurs that so charmingly self-depreciatingly style themselves “Fat Goblins” have not simply stitched magically the contents of our beloved ephemera together; nay, I say! They, as befitting of the care and respect due our pastime, elected to redesign the formal presentation of materials within, employing a wide cornucopia of artistry, ranging from the thematically-suitable artworks (which, it should be added, could be at home in a proper salon such as this!) to the presentation of the pages themselves: Unobtrusive, yet gorgeous aesthetics render the book a balm for sore eyes, not unlike all those looking upon me and/or reading these lines right now.


But I digress; we begin our discussions within with a further look regarding specializations and their interactions with abilities; particularly useful for debutantes in the Great game would be the explanation of the lexicon employed by our most civilized of pastimes. It should also be explicitly mentioned that a previously slightly ambiguous component accompanying the implementations of specializations in the Great Game has been done away with: The booklet now explicitly notes that extraordinary abilities are exempt from specializations – a decision that rings as sensible to me, considering that they are already designated as extraordinary, n’est-ce pas?


A table of the most useful kind indeed is provided here, providing the tools to implement these in conjunction with all of our favorite elaborations and expansions of the Great game – criminally few though there may be.


Now, as all of you may well be aware, I am a staunch proponent of the notion that all ladies and gentlemen should be able to employ and use the specific implementation of the Great Game that best suits their respective taste, and as such, I am not opposed to seeing the notion of the Divorce Variation, a modification that removes the direct tie between suits and abilities – though I do have to say that the resulting potential bickering strikes me as unbecoming of a proper environment and something more suited to those newfangled, class-less new-money people babbling about FATE, as though shouting (most uncouth…)


More steeped in tradition, though not necessarily *our* tradition, but tradition nonetheless, would be the suggestion to employ “improvement points” to determine the growth of a dramatic character; as you all are well aware, this steeps the progress gained very much in a literary tradition regarding the journey and growth of a dramatic character. As the profane rabble would call it, “experience points” or some such nonsense, though they are still kept very much in service to the demands of proper etiquette and narrative sensibilities. As such, I have no qualms about recommending these to hosts to so inclined – there even are suggestions presented for various growth velocities.


Awareness of the, at times, almost incredulous feats accomplished in our Great Game, is expected at this point; but, as well all know, when paraphrasing an adage by Hardy, “there ought to be sympathy for the less fortunate.” Or at least, that’s what my maid used to tell me the other day. Anyways, as you are well aware, the experience of those less fortunate than ours, who are living a life less characterized by adventure and great deeds as providence foresaw for us, might well be intrigued to play when given the chance; heck, we might well want to step back ourselves and be immersed in a scenario or two where we are not as…impeccably extraordinary. As such, imposing a hard limit on cards played serves as a truly fantastic way to envision a world that is, at least slightly, more mundane than the at times tiringly wondrous lives we lead. What’s that, James? Ugh, tell the faerie I want the yard clean for the late afternoon tea.


Pardonnez-moi, mesdames et messieurs – good help is so hard to find these days. Now, when recalling, as individuals of such astute faculties undoubtedly can, the Half-Off variant is pretty self-explanatory, focusing on providing half the benefits when cards do not align…like that of my fate and that splendorous debutante last year…And yes, at this point, I should not be remiss to note that the variations presented within actually can be modified and tinkered with further. Think of them like the intricate wheels of a proper clock – they run just fine on their own, but depending on your joyous curiosity regarding experimentation, you’ll have different experiences.


Perhaps one of the most vital variations ever devised upon this wondrous world, though, would be the finer differentiation between Feats difficulties that one of these provides; this one, all on its own, should easily make the truly paltry price, respectfully asked, truly worth it, and it frees the host from the requirement to play cards to enhance difficulties – in short, it enhances the fair play at a table by taking a needlessly divisive burden off the host’s back, while also enhancing the gravity of the decisions made by dramatic characters.


Now…I’d ask those of faint dispositions, those of weak hearts, to leave the room. The fairer among us may want to take out there fans, for yes…it is my outraged duty to report that the most scandalous dice-based variation, devised by the mischievous, malignant Moriarty, is also included within this booklet! The criminal mastermind’s attempted subversion of our proper world order seems to be alive and kicking, and while obviously despicable and dastardly, one cannot help but find a sick genius in the implementation of these rules. While obviously worthy of shunning and prosecution, one must be able to look into the eye of savagery, even in the variations, imposed in this case, upon the Great Game. Now, unflinchingly, I have to concede that there is a well-based foundation underlying this, but now that I have determined this, none of you will have to. If I may, ladies and gentlemen – keep this variation out of the hands of savages, staff and similar beings of less firmly-grounded morals. We don’t want them to feel entitled to play in our grand pastime now, do we?


As you may know, this series of ephemera started with a humble little offering, highlighting how one of these decks, these Tarot cards, that are all the rage right now, may be employed with the Great Game; success bred…more success. Like our family trees, correct? We did, hence, get more than one of these ephemera, which have since been properly fitted with a more evocative nomenclature, namely that of the Fortunate and that of the Sorcerous Tarot Variation. If you, like me, love to regale your astute audiences as a host, then the following happenstance may well have occurred in your game as well: You have the Major Arcana…and its effects simply would not fit properly. Quel dommage!


Now, it seems like some distinguished individuals, who shall not be named for now, have observed this as well, and thus proceeded to alter the tables of the effects of these types of cards, making them more widely applicable. While it is my firm assertion that a host of the proper caliber would not require this modification, I couldn’t help but marvel at the simplicity of the modifications added to the material at hand. Speaking of which, this book does also note an option that can combine our classic deck with major arcana, and one that would allow for the discarding of a major arcana card to redraw – this one, ladies and gentlemen, obviously does vastly enhance the power and versatility of dramatic characters. If you want to weave a truly outlandish yarn, this may well be the way to go!


Now, as noted before, the aesthetics of this booklet do not leave anything to be desired; there are these little bookmarks included for ease of navigation in the ephemeral iteration of this booklet. The compilation and refinement exerted throughout combine to make sure that these variations, transcribed by the esteemed Mister J Gray, is a masterpiece, pure and simple; had it not been for the fact that I have already bestowed my highest accolades upon the components, this would have been a candidate for my list of best offerings of the year. Since this already has reached these heights, I am in the unfortunate position of not being able to bestow these honors once more.


This, however, should not be taken to mean that this is anything but a truly required purchase – this humble offering should be considered to be an EZG Essential, a required reading for any host of distinguished character and skill, a 5 star + seal of approval supplement.


Endzeitgeist out.
Categories: Game Theory & Design

Payment PayEx

New Drupal Modules - 16 July 2018 - 2:17am

Provides an integration with PayEx payment gateway, when using Payment.

Dependencies Installation

See the modules README.txt for information on installing and configuring this module.

Categories: Drupal

OpenSense Labs: Use Elasticsearch to Indexing in Drupal

Planet Drupal - 16 July 2018 - 1:59am
Use Elasticsearch to Indexing in Drupal Raman Mon, 07/16/2018 - 14:29

Modern applications are expected to be equipped with powerful search engines. Drupal provides a core search module that is capable of doing a basic keyword search by querying the database. When it comes to storing and retrieving data, databases are very efficient and reliable. They can be also used for basic filtering and aggregating of data. However, they are not very efficient when it comes to searching for specific terms and phrases.


Performing inefficient queries on large sets of data can result in a poor performance. Moreover, what if we want to sort the search results according to their relevance, implement advanced searching techniques like autocompletion, full-text, fuzzy search or integrate search with RESTful APIs to build a decoupled application?

This is where dedicated search servers come into the picture. They provide a robust solution to all these problems. There are a few popular open-source search engines to choose from, such as Apache Solr, Elasticsearch, and Sphinx. When to use which one depends on your needs and situation, and is a discussion for another day. In this article, we are going to explore how we can use Elasticsearch for indexing in Drupal.

What is Elasticsearch?

Elasticsearch is a highly scalable open-source full-text search and analytics engine. It allows you to store, search, and analyze big volumes of data quickly and in near real time.” – elastic.co 

It is a search server built using Apache Lucene, a Java library, that can be used to implement advanced searching techniques and perform analytics on large sets of data without compromising on performance.

“You Know, for Search”

It is a document-oriented search engine, that is, it stores and queries data in JSON format. It also provides a RESTful interface to interact with the Lucene engine. 

Many popular communities including Github, StackOverflow, and Wikipedia benefit from Elasticsearch due to its speed, distributed architecture, and scalability.

Downloading and Running Elasticsearch server

Before integrating Elasticsearch with Drupal, we need to install it on our machine. Since it needs Java, make sure you have Java 8 or later installed on the system. Also, the Drupal module currently supports the version 5 of Elasticsearch, so download the same.

  • Download the archive from its website and extract it
$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.10.tar.gz $ tar -zxvf elasticsearch-5.6.10.tar.gz
  • Execute the “elasticsearch” bash script located inside the bin directory. If you are on Windows, execute the “elasticsearch.bat” batch file
$ elasticsearch-5.6.10/bin/elasticsearch

The search server should start running on port 9200 port of localhost by default. To make sure it has been set up correctly, make a request at http://localhost:9200/ 

$ curl http://localhost:9200

If you receive the following response, you are good to go

{   "name" : "hzBUZA1",   "cluster_name" : "elasticsearch",   "cluster_uuid" : "5RMhDoOHSfyI4a9s78qJtQ",   "version" : {     "number" : "5.6.10",     "build_hash" : "b727a60",     "build_date" : "2018-06-06T15:48:34.860Z",     "build_snapshot" : false,     "lucene_version" : "6.6.1"   },   "tagline" : "You Know, for Search" }

Since Elasticsearch does not do any access control out of the box, you must take care of it while deploying it.

Integrating Elasticsearch with Drupal

Now that we have the search server up and running, we can proceed with integrating it with Drupal. In D8, it can be done in two ways (unless you build your own custom solution, of course).

  1. Using Search API and Elasticsearch Connector
  2. Using Elastic Search module
Method 1: Using Search API and Elasticsearch Connector

We will need the following modules.

However, we also need two PHP libraries for it to work – des-connector and php-lucene. Let us download them using composer as it will take care of the dependencies.

$ composer require 'drupal/elasticsearch_connector:^5.0' $ composer require 'drupal/search_api:^1.8'

Now, enable the modules either using drupal console, drush or by admin UI.

$ drupal module:install elasticsearch_connector search_api

or

$ drush en elasticsearch_connector search_api -y

You can verify that the library has been correctly installed from Status reports available under admin/reports/status.

Viewing the status of the library under Status ReportsConfiguring Elasticsearch Connector

Now, we need to create a cluster (collection of node servers) where all the data will get stored or indexed.

  1. Navigate to Manage → Configuration → Search and metadata → Elasticsearch Connector and click on “Add cluster” button
  2. Fill in the details of the cluster. Give an admin title, enter the server URL, optionally make it the default cluster and make sure to keep the status as Active.Adding an Elasticsearch Cluster
  3. Click on “Save” button to add the cluster
Adding a Search API server

In Drupal, Search API is responsible for providing the interface to a search server. In our case, it is the Elasticsearch. We need to make the Search API server to point to the recently created cluster.

  1. Navigate to Manage → Configuration → Search and metadata → Search API and click on “Add server” button
  2. Give the server a suitable name and description. Select “Elasticsearch” as the backend and optionally adjust the fuzzinessAdding a Search API server
  3. Click on “Save” to add the serverViewing the status of the newly added server
Creating a Search API Index and adding fields to it

Next, we need to create a Search API index. The terminologies used here can be a bit confusing. The Search API index is basically an Elasticsearch Type (and not Elasticsearch index). 

  1. On the same configuration page, click on “Add Index” button
  2. Give an administrative name to the index. Select the entities in the data sources which you need to indexAdding the data sources of the search index
  3. Select the bundles and language to be indexed while configuring the data source, and also select the indexing order.Configuring the added data sources
  4. Next, select the search API server, check enabled. You may want to disable the immediate indexing. Then, click on “Save and add fields”Configuring the search index options
  5. Now, we need to add the fields to be indexed. These fields will become the fields of the documents in our Elasticsearch index. Click on the “Add field” button.
  6. Click on “Add” button next to the field you wish to add. Let’s add the title and click on “Done”Adding the required fields to the index
  7. Now, configure the type of the field. This can vary with your application. If you are implementing a search functionality, you may want to select “Full-text”Customizing the fields of the index
  8. Finally, click on “Save Changes”
Processing of Data

This is an important concept of how a search engine works. We need to perform certain operations on data before indexing it into the search server. For example, consider an implementation of a simple full-text search bar in a view or a decoupled application. 

  1. To implement this, click on the “Processors” tab. Enable the following and arrange them in this order.
    1. Tokenization: Split the text into tokens or words
    2. Lower Casing: Change the case of all the tokens into lower
    3. Removing stopwords: Remove the noise words like ‘is’, ‘the’, ‘was’, etc
    4. Stemming: Chop off or modify the end of words like  ‘–-ing’, ‘–uous’, etc

      Along with these steps, you may enable checks on Content access, publishing status of the entity and enable Result Highlighting
  2. Scroll down to the bottom, arrange the order and enable all the processes from their individual vertical tabs.Arranging the order of Processors
  3. Click on “Save” to save the configuration.

Note that the processes that need to be applied can vary on your application. For example, you shouldn’t remove the stopwords if you want to implement Autocompletion.

Indexing the content items

By default, Drupal cron will do the job of indexing whenever it executes. But for the time being, let’s index the items manually from the “View” tab.

Indexing the content items

Optionally alter the batch size and click on “Index now” button to start indexing.

Wait for the indexing to finish

Now, you can view or browse the created index using the REST interface or a client like Elasticsearch Head or Kibana. 

$ curl http://localhost:9200/elasticsearch_drupal_content_index/_search?pretty=true&q=*:* Creating a view with full-text search

You may create a view with the search index or use the REST interface of Elasticsearch to build a decoupled application.

Example of a full-text search using Drupal viewMethod 2: Using Elastic Search module

As you may notice, there is a lot of terminology mismatch between Search API and Elasticsearch’s core concepts. Hence, we can alternatively use this method.

For this, we will need the Elastic Search module and 3 PHP libraries – elasticsearch, elasticsearch-dsl, and twlib. Let’s download the module using composer.

$ composer require 'drupal/elastic_search:^1.2'

Now, enable it either using drupal console, drush or by admin UI.

$ drupal module:install elastic_search

or

$ drush en elastic_search -y Connecting to Elasticsearch Server

First, we need to connect the module with the search server, similar to the previous method.

  1. Navigate to Configuration → Search and metadata → Elastic Server
  2. Select HTTP protocol, add the elastic search host and port number, and optionally add the Kibana host. You may also add a prefix for indices. Rest of the configurations can be left at defaults.Adding the Elasticsearch server
  3. Click on “Save configurations” to add the server
Generating mappings and configuring them

A mapping is essentially a schema that will define the fields of the documents in an index. All the bundles of entities in Drupal can be mapped into indices.

  1. Click on “Generate mappings”
  2. Select the entity type, let’s say node. Then select its bundles. Optionally allow mapping of its childrenAdding the entity and selecting its bundles to be mapped
  3. Click on “Submit” button. It will automatically add all the fields, you may want to keep only the desired fields and configure them correctly. Their mapping DSL can also be exported.Configuring the fields of a bundle
Generating index and pushing the documents

Now, we can push the indices and the required documents to the search server.

  1. For that, move on to the indices tab, click on “Generate New Elastic Search Indices” and then click on “Push Server Indices and Mappings”. This will create all the indices on the server.
  2. Now index all the nodes using “Push All Documents”. You may also push the nodes for a specific index. Wait for the indexing to finish.Managing the indices using the admin UI
Conclusion

Drupal entities can be indexed into the Elasticsearch documents, which can be used to create an advanced search system using Drupal views or can be used to build a decoupled application using the REST interface of Elasticsearch. 
While Search API provides an abstract approach, the Elastic Search module follows the conventions and principles of the search engine itself to index the documents. Either way, you can relish the flexibility, power, and speed of Elasticsearch to build your desired solution.

blog banner blog image Blog Type Tech Is it a good read ? On
Categories: Drupal

Payment Swish

New Drupal Modules - 16 July 2018 - 1:16am

Provides an integration with Swish payment gateway, when using Payment.

Dependencies Installation

See the modules README.txt for information on installing and configuring this module.

Categories: Drupal

How Bossa relied on players to help build its skyfaring MMO Worlds Adrift

Social/Online Games - Gamasutra - 16 July 2018 - 1:01am

"By allowing players to take control, it allowed the team to focus on developing systems and mechanics that would encourage player creativity," explains Bossa founder Henrique Olifiers. ...

Categories: Game Theory & Design

Vitalsource API

New Drupal Modules - 16 July 2018 - 12:33am

An API module to use to integrate towards vitalsource API.

You probably do not need this module, unless you are downloading another module that needs this module.

Categories: Drupal

Capita Translation and interpreting

New Drupal Modules - 16 July 2018 - 12:31am
Overview

Capita TI’s plugin, SmartMATE Drupal Connect, provides a professional website translation service for the Translation Management Tool module (TMGMT).

Categories: Drupal

Kupindo Simle XML

New Drupal Modules - 16 July 2018 - 12:18am
Overview

Kupindo Simple XML module will help you to transfer a great number of products from Drupal Commerce to Kupindo easy.

It saves a lot of time and you can have predefined global settings for shipping, guarantee, etc.

Module utilize Kupindo Simple XML system. After the module installation you will need to contact Kupindo and send them your .xml link.

Categories: Drupal

Pages

Subscribe to As If Productions aggregator