V20 – Pagination and Results partially loading.
- ekimunalParticipant4 years, 12 months ago #13994
<!– Date fields used for sorting and searching –>
<field name=”date” type=”date” indexed=”true” stored=”false”/>
<field name=”modified” type=”date” indexed=”true” stored=”false”/><!– Fields used to display the date –>
<field name=”displaydate” type=”string” indexed=”false” stored=”true”/>
<field name=”displaymodified” type=”string” indexed=”false” stored=”true”/>ekimunalParticipant4 years, 12 months ago #14002When we launched this project team spoke with Solr and WebSolr customized our schema(WPSOLR) to work with WebSolr, so on the production env it is working quite well.
I believe all the issue lies in the wp_query that is generated after sorting is defined.
I will try to investigate but couldn’t produce any logs or errors.
ekimunalParticipant4 years, 12 months ago #14005Here is the query date based:
SELECT xxx_10_posts.ID FROM xxx_10_posts WHERE 1=1 AND xxx_10_posts.ID IN (2100243,2100241,2100232,2100222,2100223,2100226,2100227,2100205,2100206,2100197) AND xxx_10_posts.post_type IN (‘post’, ‘rdm_video’, ‘attachment’) AND ((xxx_10_posts.post_status <> ‘trash’ AND xxx_10_posts.post_status <> ‘auto-draft’)) ORDER BY FIELD( xxx_10_posts.ID, 2100243,2100241,2100232,2100222,2100223,2100226,2100227,2100205,2100206,2100197 ) LIMIT 0, 10Here is the query relevancy based:
SELECT xxx_10_posts.ID FROM xxx_10_posts WHERE 1=1 AND xxx_10_posts.ID IN (1507043,208918,280958,281497,278558,282711,282723,276404,301299,308041) AND xxx_10_posts.post_type IN (‘post’, ‘rdm_video’, ‘attachment’) AND ((xxx_10_posts.post_status <> ‘trash’ AND xxx_10_posts.post_status <> ‘auto-draft’)) ORDER BY FIELD( xxx_10_posts.ID, 1507043,208918,280958,281497,278558,282711,282723,276404,301299,308041 ) LIMIT 0, 10
You must be logged in to reply to this topic.