Carbon-Forum icon indicating copy to clipboard operation
Carbon-Forum copied to clipboard

search body content? Not only search title.

Open hoogw opened this issue 7 years ago • 5 comments

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.

hoogw avatar May 22 '17 17:05 hoogw

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

lincanbin avatar May 22 '17 17:05 lincanbin

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.

hoogw avatar May 23 '17 22:05 hoogw

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

lincanbin avatar May 24 '17 01:05 lincanbin

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.

hoogw avatar May 25 '17 21:05 hoogw

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

lincanbin avatar Jun 02 '17 08:06 lincanbin