lincanbin / Carbon-Forum

A high performance open-source forum software written in PHP. Discussions Tags based with Quora/StackOverflow style.
https://www.94cb.com/
Apache License 2.0
1.84k stars 434 forks source link

search body content? Not only search title. #217

Open hoogw opened 7 years ago

hoogw commented 7 years ago

How to let it search post body content? Not only search title.

If I put "usa2017" in post, not title, for example, I should get this post when I search key word usa2017

So far, It only search title, not post.

lincanbin commented 7 years ago

Install Sphinx. https://github.com/lincanbin/Carbon-Forum/blob/master/docker_resources/sphinx.conf

hoogw commented 7 years ago

http://php.net/manual/en/sphinx.installation.php http://tentenstudios.com/blog/integrating-sphinx-search-php-application-part-1

very defficult to install Sphinx. too hard.

also need to change The PHP Side code, search result. Only you know how.

Can you give details by steps? I am newbie like many others want to use this feature but don't know how.

lincanbin commented 7 years ago

https://www.google.com/search?newwindow=1&client=aff-cs-360chromium&hs=bjN&q=install+Sphinx+and+php+extension&oq=install+Sphinx+and+php+extension&gs_l=serp.3..30i10k1.7351.12190.0.12433.24.19.1.0.0.0.463.3084.2-1j4j3.8.0....0...1.1.64.serp..17.1.375.gdE7jWO7vzg

hoogw commented 7 years ago

too difficult to do it. Too complex. confuse.

Is there any way to solve it by not using sphinx?

I mean use some sql query to search for post content.

you already search for post title, just add search for post content.

lincanbin commented 7 years ago

Using some sql query will consume a lot of computing resources.