Indexing and checking duplicates in posts