public void Write(DocumentTableRow document, IWriteSession session) { var analyzedTerms = _analyzer.AnalyzeDocument(document); foreach (var term in analyzedTerms) { _treeBuilder.Add(term.Field, term.Value, term); } session.Write(document); Log.DebugFormat("analyzed doc ID {0}", document.TableId); }
public void Write(Document document) { var analyzedTerms = _analyzer.AnalyzeDocument(document); foreach (var word in analyzedTerms) { var field = word.Term.Field; var token = word.Term.Word.Value; var posting = word.Posting; _treeBuilder.Add(field, token, posting); } _writeSession.Write(document); }
public void Write(DocumentTableRow document, IWriteSession session) { session.Write(document); Log.DebugFormat("stored doc ID {0}", document.TableId); }