title: Lucene.NET - Document boosting
body: <p>I am programming my first .NET Project including Lucene for an article search. Everything works fine for me but I got a problem in boosting special documents. I receive my articlelist to index from a database where every article has a special column for priority with values from 0 to 8.</p>
  
  <p>First I tried to set the boost for a whole document by:</p>
  
  <pre><code>Document doc = new Document();
  doc.add(new Field(...));
  doc.add(new Field(...));
  doc.add(new Field(...));
  ...
  doc.Boost = (float)column.priority;
  </code></pre>
  
  <p>But this didn't do what I expected.</p>
  
  <p>Then I tried to set the boost for every field I use in my search like:</p>
  
  <pre><code>Document doc = new Document();
  if(){
     Field field = new Field(...);
     field.boost = (float)column.priority;
     doc.add(field);
  }
  </code></pre>
  
  <p>But this also didn't work.</p>
  
  <p>I also tried to use Luke to analyse the scoring but I can't find a special boosting factor in the result explain function.</p>
  
  <p>Does someone know where is the mistake or is it a general misunderstanding of boosting?</p>
  
  <p>Thanks for any answer or hint....MOE</p>