简体   繁体   中英

wordpress vs solr for search

In SOLR when the DB is updated with new columns that need to be searched we have to update the data-config file to reflect those changes. We are considering moving to a wordpress platform and have the option of using the native search or solr.

If I add a new column to a table I have to update data-config queries to include the new column for search. What is the code change (if any) required to do the same using native wordpress search?

Since WordPress 3.7 , search relevance works as follows:

  • Full sentence matches in post titles.
  • All search terms in post titles.
  • Any search terms in post titles.
  • Full sentence matches in post content.

Each section and any remaining posts are then sorted by date.

WordPress' built-in search is not anywhere near as powerful as SOLR, but with WordPress, the database is searched on the fly without the need to change any code (as so long as you are searching the normal WordPress database tables).

The built-in search is known to be quite clunky, and is not recommended for large sites. WordPress VIP offers clients ElasticSearch , which I highly recommend (the ElasticSearch part, not the VIP part), if you do move to WordPress. There are also other third-party solutions, like Relevanssi for small sites that don't have lots of post data.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM