<p>Hello gophers!</p>
<p>I'm building a simple web app to improve my Go skills. I'm using gorm with postgres and gin which has made things very easy for all the basic CRUD stuff, but I'm at a point where I want to add some search functionality.</p>
<p>I haven't found many guides on this topic and I'm not sure where to go next. If anyone has some basic advice, links to useful guides, or has some code they could share that would be awesome!</p>
<hr/>**评论:**<br/><br/>theromeo3517: <pre><p>Postgres had decent full text search, I I would start there</p></pre>very-little-gravitas: <pre><p>Seconded. Use Postgres FTS, or even just ILIKE if your needs are simple (matching terms in blog post title and keywords fields or something like that).</p></pre>recurrency: <pre><p>Agree w prev poster on using postgres, for the record if you want an all go embedded solution you could try <code>bleve</code>: <a href="http://www.blevesearch.com" rel="nofollow">http://www.blevesearch.com</a></p></pre>burnaftertweeting: <pre><p>How fast does it need to be and how approx. how many records do you expect to search through?</p></pre>
