Matthew Boynes

Results 81 issues of Matthew Boynes

This changes the meta dynamic mapping to only map the fields that are present when an object is indexed. I'm not sure if it's necessary that we bump the mapping...

`Tests_Faceting` can, and should, be refactored to use the sample data in `SearchPress_UnitTestCase::create_sample_content()`. Some of the data is the same, some different.

If the number of indexed posts doesn't match the number of "should be indexed" posts, there should be an option to look for missing posts. This could even be an...

Indexing

The following new sniffs started failing in phpcs and need to either be ignored or fixed: * [ ] `Squiz.Commenting.LongConditionClosingComment.Missing` * [ ] `WordPress.Arrays.ArrayDeclarationSpacing.AssociativeKeyFound` * [ ] `WordPress.VIP.RestrictedFunctions.get_term_by_get_term_by` * [...

### Basic example ```php add_filter( 'sp_search_wp_query_args', function( $wp_args ) { $wp_args['facets'] = [ 'Category' => [ 'type' => 'taxonomy', 'taxonomy' => 'category', 'count' => 10, ], ]; return $wp_args; }...

Faceting

This is possible to do with WP-CLI, but not via the admin. [This won't always work](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#merging-conflicts), so we'll need to handle exceptions gracefully.

Mapping

`SP_Sync_Manager` needs more test coverage

enhancement
needs-unit-tests
Indexing

* [ ] Revisit analyzer, see if anything makes sense to add or remove * [ ] Store array of all ancestors * [ ] Convert `permalink` to an object,...

enhancement
Mapping
Indexing