How to create a build system in Sublime Text 3?

How build the full-text indexes for a Q&A system?

  • I need to build a Q&A system for my school,maybe such as quora. we need to provide the ability of searching questions. So we need to build some full-text indexes. And now the question is that what filed should be indexed? 1. only index of title. This most simple, but maybe not enough information,the search result is not accurate enough. 2. index of title and tags. Tags may be some good keywords for searching? 3. index of title,description,all answers from users. This approach will provide more information to identify what the question about by the occurrences of keywords. So maybe we can find the better result for users,who type some keywords for searching. But I am lack of data to prove it. what do you think about it? please provide some suggestions, thanks so much!

  • Answer:

    Just use OSQA with Postgresql and the "pgfulltext" module. It will work well in your context. http://www.osqa.net

Rick Ross at Quora Visit the source

Was this solution helpful to you?

Other answers

's suggestion sounds good, but if you don't go with a pre-built package that has a search feature built in, you should probably look into Apache Lucene or Solr.  The Lucene/Solr system makes it pretty easy to build searchable text indexes and get results.  Given that, if you index everything, but separate the content by fields (eg, "title", "content", "tags", etc.) then users can specify which field they want to search, using a special query syntax.  And you can make the default field(s) whatever you want... everything, just title, just tags, whatever seems appropriate to your case.   http://lucene.apache.org http://lucene.apache.org/solr/

Phillip Rhodes

What is typical in indexing multipart documents is to create a per-document index, where search tokens are combined from various parts (like question, answers, tags, etc.) into the per-document record, possibly with some weighting of the individual parts. Index is then built against those recards, You'd want to use a package to serve the search, some examples are "solr", "sphinx" or one supported by an RDBMS like postgresql.

Evgeny Fadeev

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.