Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8610313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:06:08+00:00 2026-06-12T04:06:08+00:00

Hello i am trying xapian c++ library i am basically from java and i

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:06:09+00:00Added an answer on June 12, 2026 at 4:06 am

    Xapian, unlike Lucene, does not constrain how you use document data; it simply allows any binary data to be stored for each document – although this is in some way a missing feature, it also provides more flexibility, meaning that some people could use JSON, some a simple key-value serialization and so on. The downside, of course, is that you have to decide how to serialize your data.

    There is code in Omega which uses a simple key-value serialization that may be helpful. Alternatively, you could look at something like restpose, which gives a higher-level approach to search built on top of Xapian, and is more comparable to Solr.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I was trying to remove objects from object array that I have and
Hello I am trying to start the android browser from a service using this
Hello i been trying to get a tokenizer to work using the boost library
Hello am trying to update a column in my sql database using values from
hello i am trying to load a list of filenames from a folder into
Hello I am trying to setup a Padrino project using DataMapper and MySQL on
Hello i am trying to return a struct from a function but i cant
Hello i am trying to find out how can i print a file which
Hello I'm trying to do the impossible apparently. I need a self referenced table
Hello i am trying to access a network folder from my ASP.NET Intranet web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.