title: SOLR - Use single text field in schema for full text search
body: <p>I am getting familiar with SOLR.</p>
  
  <p>I would like to use SOLR for full text search for many kind of entities. I don't want to create a Document for every different type of entity. I don't want to be able to search for specific fields. I am only interested in that if a specified string is anywhere in any item. </p>
  
  <p>In database terms for example I have a table News and a table Employee and I want to search for the word 'apple', I don't mind in which field it is, I only want to get back the database ID from the records which contain it.</p>
  
  <p>Could it be a solution, that I use a SOLR schema something like this:</p>
  
  <pre><code>&lt;fields&gt;
     &lt;field name="id" type="string" indexed="true" stored="true"/&gt; 
     &lt;field name="content" type="text" indexed="true" stored="false"/&gt;
  &lt;/fields&gt;
  </code></pre>
  
  <p>So, I only need an ID and the contents. I put all the data, in which I want to be able search into one 'content' field. When I search for some words it looks for it in the 'id' and int the 'content'.</p>
  
  <p>Is this a good idea? Any performance or design problem?</p>
  
  <p>Thanks,
  Tamas</p>