I thought there was a d.o issue a while ago that explained why or why not for indexing a view or page into your index for searching but I was unable to find it so I figured I would open an issue and ask.
Is there a limitation or a reason for not being able to index views as if they were any other type of entity? We have a # of views in which very specific content is displayed and the view has some meta-data that can be searched on, explaining the purpose of that page. I was asked if we could, from our main site search index these views as if they were any other entity and have them become available in our main search results.
I can know I can "make it work" with some code and wizardry but was wondering what technical or otherwise limitation there was for not having it as any other datasource?
Comments
Comment #2
drunken monkeyThat's a good question!
The basic problem is that config entities (like views) currently don't support the Typed Data API, which we're using for indexing. Therefore, only content entities can be indexed by default by this module. There is just no (simple enough) way to support config entities there, too.
Core issue for fixing this: #1818574: Support config entities in typed data EntityAdapter.
As you say, though, it shouldn't be too hard writing your own datasource for views. Or, you could even write it for config entities in general, for which I'm sure a lot of people would be grateful to you if it got added back to this module. I don't think it's that hard, it's just probably pretty complex and would need a lot of code.
Comment #3
ndrake86 commented@drunken monkey Thanks for getting back to me. I knew there was a reason and it was related to a core change. I will start looking into it what maybe we can do to at least get the some meta data and what not for views.
Comment #5
gaddman commentedSince the core issue has since been fixed is this effectively tracked under #2981091 or could it be re-opened? I'd love to be able to index a view page directly, rather than the current workaround of creating a view block and inserting that into a page via the Advanced Insert View module.