title: Full-text index in PostgreSQL (not 'english' or 'simple)?
body: <p>I need to store a few hundred thousand HTML documents in a database and be able to search them. But not just for content - I need the searches to match class names, script names and id values  (among other things) that might appear as attributes within the HTML tags in the documents. I tried using to_tsvector('english', tableColumn) and to_tsvector('simple', tableColumn) but neither seem to match the contents of attributes in tags. Specifically, I did this:</p>
  
  <pre><code>create index an_index on myTable using gin (to_tsvector('simple',tableColumn))
  </code></pre>
  
  <p>and then:</p>
  
  <pre><code>select url from myTable where to_tsvector ('simple', tableContent) @@ to_tsquery ('myscript.js')
  </code></pre>
  
  <p>I expected it to retrieve all documents that contained a reference to myscript.js. But it returns no results.</p>
  
  <p>Is it possible to achieve the results I want using the full-text search? </p>
  
  <p>Thanks in advance for your help.</p>