Nyika-yepasi rose WordPress yekutsvaga haisisiri yakachengetedzeka kumakambani e Fortune 500 ane WPSOLR

Iko kutsvaga kwako kuri kutyora yako saiti yeWordPress?

Pamwe, kana yako saiti iine anopfuura mazana emazana machira kana zvigadzirwa, kana kana vashanyi vako vachitsvaga tsvaga nemhinduro.

Kutsvaga kwe WordPress ne MySQL

Mufananidzo wpsolr-wordpress-search.png we Nei WPSOLR?

Kuti tinzwisise kuti WPSOLR inogona sei kubatanidza Apache Solr uye iyo yekutsvaga kweWordPress, ngatitangei kunyura zvishoma munyika yakavanzika yeWordPress maficha maficha. Kana iwe ukapedza nguva shoma uchinzwisisa zvinotevera zvinyorwa, iwe unenge wakanyanya kuve wakashongedzerwa nezvombo kumisikidza WPSOLR. Saka, ngatiende!

Heano (akareruka) akajairwa WordPress ekutsvagisa ekufamba mafambiro matanho, akamiririrwa mune iyo cinematic pamusoro:

  • Peji yakatakura, semuenzaniso nemushandisi achidzvanya pane chinongedzo pane yako webhusaiti.
  • Iyo WordPress musimboti rinoburitsa peji url, ine zvese parameter. Semuenzaniso: /? S = tsvuku + shangu & post_type = chigadzirwa chekutsvaga kweWooCommerce.
  • Iyo url paramita inoshandiswa kuvaka WP_Query chinhu, yakakwira yakakwira WordPress api yekuvaka SQL mibvunzo.
  • WordPress inobereka chirevo cheSQL kunze kweWP_Query, uye inodaidza iyo database ine kurudyi SQL mutauro (MySQL, PostgreSQL,…). Iyi SQL inowanzo kuve yakaoma, uye inosanganisa mhedzisiro kubva kune akati wandei SQL matafura (sezvigadzirwa uye hunhu kuti utore ruvara uye saizi yeshangu).
  • Iyo database yeWordPress inoita chirevo cheSQL, uye inodzorera mhedzisiro, iyo yakachengetwa muWP_Query chinhu. Ziva kuti dzimwe nguva chete ma Ids ekudzoserwa anodzoserwa, izvo zvinotungamira kune yakawanda SQL yakaurayiwa kuti iwane mamwe mimwe mibairo.
  • WordPress ichaita izvozvi kurodha faira re php, rakatumidzwa template. Iyo template inochengeterwa pane iripo inoshanda theme dhairekitori. Ipi template inoremerwa zvinoenderana nechiyero template yeumambo (nzira yekubatanidza urls uye template faira mazita), kana pane iyo theme kana plugin's filters / zviito. Ziva kuti pane ese marudzi ese ekutsvaga matemplate, kubva pakutsvaga.php, kumhando dzemazita, rondedzero tag, uye nevamwe vazhinji.
  • Iyo template ichaita izvozvi loop pane zvabuda yepasirose WP_Query chinhu (Loop), uye shandisa chero chinoda kuvaratidza (css, JavaScript, html,….).

vs

Kutsvaga kweWordPress neWPSOLR

Mufananidzo wpsolr-wpsolr-tsvaga-usiri-ajax-nheyo-1.png ye Nei WPSOLR?

Kuenzaniswa ne chiyero chekutsvaga WordPress, nhanho idzo dzakasiyana:

  • WPSOLR iri kutsiva WP_Query chinhu neayo chaiyo subclass chinhu WPSOLR_Query.
  • WPSOLR_Query iri kutora paramita kubva kuurl, kubva WPSOLR PRO yekuwedzera, kana kubva kodhi yako wega wefa.
  • WPSOLR inovaka iyo Elasticsearch / Solr query ne Elastica php raibhurari / Solarium php raibhurari.
  • WPSOLR inobvunza iyo Elasticsearch / Solr index kuti iwane magwaro anokwana mubvunzo.
  • WPSOLR inoburitsa iwo maid id.
  • WPSOLR, ine chirevo chimwechete cheSQL, inotora mhando dzekutumira (positi, peji, chigadzirwa, kana chero fomu yekutumira) kubva kuWordPress database.
  • WPSOLR "inowedzera" iyo yepositi mhando zvemukati: geolocation daro, yakakwenenzverwa mazwi akakosha muchikamu,…
  • WPSOLR inochengetera zvinyorwa zvemhando

Kana iyo theme yetemplate yekutsvaga yatakurwa, inozvibata senguva dzose, isingazive kuti iyo mhando yekumisikidza iyo yainowana kubva kuiyo WordPress standard loop yakauya kutanga kubva kuElasticsearch / Apache Solr query.

 

 

WPSOLR inokurumidza sei ipapo?

Iwe zvimwe wakacherekedza kuti ikozvino, mibvunzo miviri inoitwa pachinzvimbo cheimwe mukutarisirwa kwakajairika: imwe kuenda kuElasticsearch / Solr index, uye imwe yekudzosera marudzi emaposita kubva kune eodhodhi ids.

Asi zvinokurumidza kwazvo, nekuti ukangowana huwandu hwakakura hwemhando dzepositi mudhatabhesi yako (zviuru zvishoma, kuzviuru zvakawanda), iyo Elasticsearch / Solr query iri inoshamisa nekukurumidza pane WP_Query SQL yakazara-mavara ekutsvaga.

Uye wechipiri mubvunzo wekudzosera matsimba emhando kubva kuma id inokurumidza kwazvo, sezvo ichibvunza pamatafura emadodhi, ayo akanyorwa.

Basa rakaoma, iro rekutsvaga-rizere mameseji, zvakaitwa naElasticsearch / Apache Solr, iyo yakavakirwa izvozvo chete.

MySQL iri kushomeka yakachena-yakazara-yekutsvaga

MySQL inogona kudzosera yechitatu kabinet yetambo yechipiri. Asi haigone kudzora zvakanaka iyo kabhodhi ine fayile ine musoro "MySQL haina kunaka nemavara".

MySQL haisi chishandiso chakakodzera

WordPress yakavakirwa zvachose pane MySQL. Izvo zviviri zvekugadzira mapeji uye kutora ruzivo mune zvinyorwa.

Asi MySQL ndeyeRukama Dhatabhesi: iyo yakavakirwa nechinangwa chega chekutora dhata kubva kunongedzo. 
Semuenzaniso, dzosa chinyoreso neID '345678', uye ese ayo akafanana emifananidzo ID.

Kudzosa data kubva mune zvinyorwa zvaro kunodaidzwa kuti "yakazara-zvinyorwa" kutsvaga. Ipo MySQL ichiuya neyakajairika-yekutsvaga yekuwedzera, haina kumbovakirwa icho chinangwa.
Saka, tsvaga muMySQL (uye WordPress) inononoka uye isiriyo.
Mufananidzo wpsolr-header-solr-elasticsearch-4.png ye Nei WPSOLR?
Mufananidzo wpsolr-header-solr-elasticsearch-3.png ye Nei WPSOLR?

Solr uye Elasticsearch, yemahara-yakasununguka-yakazara yakazara-mameseji software, vatungamiriri vekutsvaga.
Yakabatanidzwa neWordPress neWPSOLR, ivo vanogona kuita zvishamiso.

Solr kana Elasticsearch - makazara-mavara mhare

Kana zvasvika kune zvinoshamisa zvekutsvaga mazuva ano, makwikwi maviri anomuka pamusoro pevamwe: Apache Solr uye Elasticsearch.

Vaviri vanogovana injini imwechete, "Lucene". 

Ose ari maviri akavakirwa kukurumidza uye kutsvaga kwechokwadi.

Zvese zviri mahara uye zvakasununguka-sosi: iwe unogona kuzvimisikidza pane sevha yako yemahara.

Izvo zviviri zvinogona kuvharwa nezviuru zveparamita: mitauro mumitauro makumi mashanu, zviso, zvimisikidzo, duramazwi, NLP. Zvichingoenda zvakadaro.

Asi, zvinotonyanya kukosha, bot dzakabatanidzwa zvisina kusimba kuWordPress, nekuda kweWPSOLR plugin. 

Hapana imwe plugin inozviita: iwe unogona kutsvaga neElasticsearch muFrench, uchitsvaga muchiJapan naSolr.

 

Nei usingakwanise kushandisa yakachena plugin

Ma plugins akachena anogona kuvandudza yako yekukurumidza nekukurumidza, kusvika kune imwe nhanho chete.
Tinogona kutaura, kugadzirisa vamwe:
- Relevanssi
- FacetWP
- KutsvagaWP
- AJAX Tsvaga Pro

Icho chikonzero ndechekuti ivo vachiri kushandisa MySQL kupa simba kutsvaga kwako. Uye sezvatakataura, kutsvaga hakusi kwakanaka midziyo yeMySQL. Ichaputsa nekukurumidza kana data rakawandisa richitsvaga, kana vashanyi vakawandisa vari pane yako saiti. Ndeipi yakaipa, nekuti iwe unoda vakawanda vashanyi, aiwa?

Asi zvakare, ivo havakwanise kukwikwidza maererano nemaitiro uye kumhanya neElasticsearch kana Solr. Iwo mairi mhuka, yakavakwa ne2K yemitsetse yekodhi, nemazana evandudzi. Uye chete nechinangwa chimwe chete: kupa chishandiso chakanakisa muNyika.

Saka, panzvimbo yekudzoreredza vhiri, WPSOLR yakasarudza kushandisa Elasticsearch uye Solr.

Iwe unowana hwakanakisisa pane hwese, asi nekubata kuri nyore. Hapana chikonzero chekuva nyanzvi pakutsvaga.

Uye yeuka, isu tiripo kuti tigadzirise kutsvaga kwako nemuedzo wako. Zvemahara!

Mufananidzo dave-NGea7mBq8Ak-unsplash-scaled.jpg ye Nei WPSOLR?

WPSOLR yakasarudza kubatana neyemhando yepamusoro ye teknolojia yekutsvaga yakanakisa. Panzvimbo pekugadzira zvakare vhiri.

Yakasimba uye yakachipa kupfuura iwe yaungatarisira

Zviri nyore kuti umhanye, pane inodhura server ine zvinyorwa zvishoma chete kana vashoma vashoma panguva imwe chete

Asi ko kana iwe uine zviuru, kana mazana ezviuru ezvinyorwa kana WooCommerce zvigadzirwa sevamwe vatengi vedu?



Uye chii kana paBlack Friday iwe unongoerekana wawana mazana evanoshanyira vashanyi, asi kutsvaga kwako kunotyora server yako pasi?



Uye zvakadiniko kana iwe usati uchinge uine bhizimusi rekushandisa zviuru mwedzi wega wega pamutengo wakatsaurwa wemahara, kana masevhisi akabatwa?

Ne WPSOLR, hapana kunetseka!

  • Vamwe vatengi vanogara vachifara nemazana ezviuru ezvigadzirwa, kana maposita, kana misoro.
  • Vamwe vatengi vane mazana evashanyi zuva rega rega, pasina kudzora zvishoma.
  • WPSOLR inoda zvakachipa zvemahara, uye kwete zvinodhura pazvinodiwa kunyoreswa.
Image Damir-spanic-22L7do1cOho-unsplash-scaled.jpg ye Nei WPSOLR?

WPSOLR inogona kutsvaga muhuwandu hukuru yezvinyorwa, nehuwandu hukuru hwevashanyi, pane iyo yakachipa michina, kune kunyoreswa kudiki kunyoreswa. Chii chakanak?

en English
X