Forum Replies Created
-
pseudo visitorParticipant7 years, 11 months ago in reply to: Searching for just PDF Files? #8715
Sorry…to add 1 more…search result (As per the image) + a plain mysql table +PDF search result?
pseudo visitorParticipant7 years, 11 months ago in reply to: Searching for just PDF Files? #8714Can WPSOLR display as the picture below and together the search result PDF combine?
Those datagrid, table format, datagrid without photo?
If i buy it, will it setup for me?pseudo visitorParticipant7 years, 11 months ago in reply to: Searching for just PDF Files? #8713ok.
I just to try out the PDF search speed.
pseudo visitorParticipant7 years, 11 months ago in reply to: Searching for just PDF Files? #8711I had followed exactly the same as per this page, but how to know it has been installed correctly?
I tried this:
pseudo visitorParticipant7 years, 11 months ago in reply to: Index and search an Excel document? #8709I will learn more about your plugin, this sound like the option I need.
Thank you very much for your help.
pseudo visitorParticipant7 years, 11 months ago in reply to: Index and search an Excel document? #8707Oh…. ok, excellent.
pseudo visitorParticipant7 years, 11 months ago in reply to: Index and search an Excel document? #8705because my client give me the table in excel format.
pseudo visitorParticipant7 years, 11 months ago in reply to: Index and search an Excel document? #8703table.
pseudo visitorParticipant7 years, 11 months ago in reply to: Index and search an Excel document? #8701I will try to elaborate…I have a simple data table with names, adrress, and activities – I need that the search engine search in that datatable –
pseudo visitorParticipant7 years, 11 months ago in reply to: Building a custom facet from an ACF post type relationship #8692Okay, it’s finally good!
I was confused in the blur of the difference between indexing and customizing the indexed data. It had to be done first a WPSOLR_FILTER_INDEX_CUSTOM_FIELDS to add a field with a name that is not “writers” which is a relation field (because with the relation field checked it crashes at indexing, expect string object given), then fill in the new field with the desired data with WPSOLR_FILTER_POST_CUSTOM_FIELDS.
Thank you for being so patient! I send you a Gist once the code is cleaned, it could serve as an example to others 🙂
pseudo visitorParticipant7 years, 11 months ago in reply to: Building a custom facet from an ACF post type relationship #8687No, and even in the Solr console directly, another custom ACF field checked in the 2.2 tab appears, but not this one.
pseudo visitorParticipant7 years, 11 months ago in reply to: Building a custom facet from an ACF post type relationship #8685What does not work in practice is the “writers” field (or “writers_str”) that is not indexed while I’m filling it and adding it to the $custom_fields array.
pseudo visitorParticipant7 years, 11 months ago in reply to: Building a custom facet from an ACF post type relationship #8683I replaced “$custom_fields[$custom_field_name][] = $fullname;” by “$custom_fields[$custom_field_name.” _ str “][] = $fullname;”
Because by adding the “_str” from the entry of the function, it does not enter the 3rd if (since the field custom is called “writers”).
You think it can come from a config problem in 2.2? Even if it would surprise me because as soon as I check the box of the field writers, the indexing crashes since (object instead of string)
pseudo visitorParticipant7 years, 11 months ago in reply to: Building a custom facet from an ACF post type relationship #8681That’s what it gives, with “writers” being the id of ACF relation fields in an article, first name and last name id of fields in a writer. We get into the if when an article has a writer or writers linked, and the final var_dump returns what I would like to index.
add_filter(WPSOLR_Events::WPSOLR_FILTER_POST_CUSTOM_FIELDS, 'post_custom_fields', 10, 2);function post_custom_fields($custom_fields, $postID) { $custom_field_name = "ecrivains"; if (!isset($custom_fields)) { $custom_fields = []; } // var_dump($custom_fields); if ( $custom_fields && count( $custom_fields ) > 0 ) { if ( isset( $custom_fields[ $custom_field_name ] ) ) { $custom_fields[ $custom_field_name ] = []; foreach (get_field($custom_field_name, $postID) as $ecrivain){ $prenom = get_field('prenom', $ecrivain); $nom = get_field('nom', $ecrivain); $fullname = $prenom." - ".$nom; $custom_fields[$custom_field_name][] = $fullname; } } } // var_dump($custom_fields); return $custom_fields; };pseudo visitorParticipant7 years, 11 months ago in reply to: Building a custom facet from an ACF post type relationship #8679I think I still have a problem with the hook “WPSOLR_Events::WPSOLR_FILTER_POST_CUSTOM_FIELDS”.
It fires well indexing, I tried var_dumps in all directions and the execution goes through my function. I added in $custom_fields the fields I wanted, then returned $custom_fields, and nothing is changed in the index (in doubt, I also checked in the Solr interface). Would you know if something is missing?