“No enabled connection” error with local Flywheel index
- pseudo visitorParticipant5 years, 4 months ago #8807
Another problem:
And I can not select the post-type …pseudo visitorParticipant5 years, 4 months ago #8811Ok, it starts to work …
To search by date (from … to …) you need another extension?
If you could ever activate it?pseudo visitorParticipant5 years, 4 months ago #8813Too bad … can you do it with a filter that would save the year of the post in an ACF and then we would use a slider on this field ACF?
If not, is it planned to do so on the date of publication?wpsolrKeymaster5 years, 4 months ago #8814The slider layout should work:
https://ionden.com/a/plugins/ion.rangeSlider/demo_advanced.htmlWhich UI exactly?
pseudo visitorParticipant5 years, 4 months ago #8815By years … for example we can search all the article on theme X from 2012 to 2014 …
And another question: the journalists (authors, but who are not the wordpress authors) are attached to the articles (and other CPT) by a ACF relationship field, how do I do so that in the search, if I type a journalist name. In fact I would even like the journalist to be a facet …
wpsolrKeymaster5 years, 4 months ago #8816I did not deal with dates or ACF relationships … for lack of needs on very complex cases.
For example, for dates, we can have hard filters (today, yesterday, last week ….). Or ranges (by week, month, semester, 23 days …). Or a slider. We must also take into account the display formats.
pseudo visitorParticipant5 years, 4 months ago #88171. I looked at Kibana, and I see that “author” is indexed with the value of the WordPress author. And I thought to myself that by using perhaps one of the hooks of the documentation of WPSOLR, I could have replaced the author WordPress by the author (s) of the ACF field of type relationship “article_author”.
2. Then for the filter by date, I did not quite understand if it was possible or not … Ideally, we would like to have a facet which by default covers all the dates of publication of the articles (and other custom post type – a little more than 10 years of history) but can be shortened at both ends (type slider: for example from November 2009 to January 2010) or with 2 fields of type date (beginning and end) which would filter the search on all articles after 1.11.2009 and before 1.1.2010 for example.
wpsolrKeymaster5 years, 4 months ago #88181. One can do better by creating an ACF field, select it in 2.2 and 2.4. Then use https://www.wpsolr.com/guide/actions-and-filters/index-modify-custom-fields/ to populate the field before indexing.
2. Same as 1. filling in an ACF date field with years for example. Then configure it with a facet range for example.
pseudo visitorParticipant5 years, 4 months ago #88191: You would have a sample code? We watched the doc hooks but it’s very laconic 😉
1 & 2: It bothering us a bit of having to mill the 60000 existing posts to fill the new ACF fields but it’s possible. But we still wonder if it is playable to do indexing with a function that would replace the data of the field author (currently the wordpress author) by the journalist (s). Ditto for the year … it is indexed 6 times (I see ds kibana) – would it be possible to use one of the fields to do the range facet?
"fields": { "date": [ 1301356800000 ] "modified": [ 1301356800000 ] "displaymodified": [ 1301356800000 ] "displaymodified_dt": [ 1301356800000 ] "displaydate_dt": [ 1301356800000 ] "displaydate": [ 1301356800000 ] }
If you think it’s better to do ACF fields and remouliner to populate them, we will do the fields …
Thank you very much in any case for this outstanding support.
You must be logged in to reply to this topic.