I'm hoping we can fold most of the Solr Devel functionality into this module to help troubleshooting.

Patch coming soon! For now here's an Image of the work in progress.

proposal screenshot

Other than the above, I thought we could also have:

  • a way to directly issue Solr GET statements from a form
  • force immediate updating or deletion of a single Solr item
  • Use a diff viewer to compare local vs. Solr versions of the data
  • ... others?

Related Documentation

https://www.drupal.org/node/2240049

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

janusman created an issue. See original summary.

mkalkbrenner’s picture

Looks nice :-)

Looking forward to see the patch.

janusman’s picture

Status: Active » Needs review
FileSize
12.68 KB

Adding patch for review.

This both works and applies cleanly to the 8.x-2.x and 8.x-1.x branches.

mkalkbrenner’s picture

Status: Needs review » Reviewed & tested by the community

Great job!

I tested it with some of our sophisticated setups and it worked.

I still have some comments but I suggest to merge this initial commit first and to open separate issues to not mix the discussions and to not blocj this useful feature.

  • mkalkbrenner committed 7756c3f on 8.x-2.x authored by janusman
    Issue #2918243 by janusman, mkalkbrenner: Port solr_devel functionality...

  • mkalkbrenner committed 46e1686 on 8.x-1.x authored by janusman
    Issue #2918243 by janusman, mkalkbrenner: Port solr_devel functionality...
mkalkbrenner’s picture

Status: Reviewed & tested by the community » Fixed

committed :-)

janusman’s picture

Status: Fixed » Patch (to be ported)

Yay!

mkalkbrenner’s picture

Status: Patch (to be ported) » Fixed

To be ported to what? It#s already committed to 1.x and 2.x?
Or did you mean Drupal 7?

janusman’s picture

Didn't mean to set that status :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pwaterz’s picture

First off, this is a great addition to the module. Question though, this ticket description says that it adds the ability to fore reindex a single entity. How do you do that?

janusman’s picture

@pwaterz: That's for another issue--patches/code/ideas welcome!

ressa’s picture

Having the Search API Solr Devel as a sub module in Search API Solr as a tool for debugging Drupal and Solr is really great, thanks for creating it @janusman!

I see that it adds a block at the top of searches, with detailed info, as well as a tab under nodes, like /devel/node/2/solr. Does it add more functionality? Could its features be mentioned with something like this in the module description in search_api_solr_devel.info.yml?

Now

Debugging your Solr integration.

Better?

Debugging your Solr integration. Adds detailed info above searches and under each node.

josephdpurcell’s picture

This is potentially because I'm using Acquia Search which requires much older versions of search modules, but I didn't see solr_devel as an option.

I was, however, able to use https://www.drupal.org/project/search_api_logger.

josephdpurcell’s picture

Issue summary: View changes