pages records are not indexed in the same way than other records. They represent the single pages of a website which are build from other records. So these pages are indexed accessing the frontend.
Every now and then there are instances where the frontend can't be indexed. The pagesrecords can be added to the indexing queue, but all indexing calls result in an error.
What is needed to index pages?
Of course you need a connection to the solr server and a base configuration to activate the solr indexer, but that should work if you can index other records like e.g. news.
You need some typoscript configuration, which should be present if you include the static templates from the extension.:
plugin.tx_solr {
index {
queue {
pages = 1
pages {
initialization = ApacheSolrForTypo3\Solr\IndexQueue\Initializer\Page
// allowed page types (doktype) when indexing records from table "pages"
allowedPageTypes = 1,7,4
indexingPriority = 0
indexer = ApacheSolrForTypo3\Solr\IndexQueue\PageIndexer
indexer {
// add options for the indexer here
}
// Only index standard pages and mount points that are not overlayed.
additionalWhereClause = (doktype = 1 OR doktype=4 OR (doktype=7 AND mount_pid_ol=0)) AND no_search = 0
//exclude some html parts inside TYPO3SEARCH markers by classname (comma list)
excludeContentByClass = typo3-search-exclude
fields {
sortSubTitle_stringS = subtitle
}
}
}
}
}
But only this does not get the page content in the index.
*_*Sdeclarations. There is definitely no need for the indexer or initializer there, for example. Then you should have a look to logs because they usually tell you what's wrong. - User366