Hello i am trying xapian c++ library i am basically from java and i used lucene and for now i need xapian i have no other go. so i am using it. In lucene we can use like this
Document doc = new Document();
doc.add(new Field("title", "stackoverflow", Field.Store.YES, Field.Index.ANALYZED));
w.addDocument(doc);
So title contains the value .But from this example
Xapian::Document newdocument;
newdocument.set_data(string("stackoverflow");
How to make the same thing in xapian.