Hi fellows,<div><br></div><div>I am creating a search engine for my spatial data. </div><div>And I am thinking of the best approach.</div><div><br></div><div>My idea is to have a full text search (tsvector) coulmn for every table. </div>
<div>Instead of performing a search on every table, I have thought of a few options</div><div><br></div><div>1. "Merge" all tables into one, regardless of their geometry type.</div><div>2. Use PostgreSQL goodies such as table Inheritance to split geometry types. (not sure if it would be of any good)</div>
<div>3. Create a table to store table oid, gid and full text search data of every table in my system, and query this table instead. This should be harder to maintain, since it should be done through triggers and rules.</div>
<div><br></div><div>Hope I explained it clearly.</div><div><br></div><div>By the way, at start I only have 20 tables, with not more than 500k rows total. So it is not much, but this should grow considerably.</div><div><br>
</div><div><br></div><div>Do you guys have any thoughts on this ?</div><div><br></div><div><br></div><div>Looking foward to hearing from you.</div><div><br></div><div><br></div><div>Ricardo</div>