Git Product home page Git Product logo

Comments (4)

lemire avatar lemire commented on June 11, 2024

Can you provide a code sample, with what you expect... and describing what you get?

It is hard to assess these problems in the abstract... much better if you have a code sample.

from indexwikipedia.

anikethjr avatar anikethjr commented on June 11, 2024

I want to create an index in which the documents' body, title, etc. are stored in the Lucene index. So that when I execute a query, I get the list of documents along with their contents and not just their docid's. Could you please tell me how to modify the code or pass arguments to accomplish this. In the README, you said "By default, Lucene does not store the content of the documents. You can achieve this result by setting the doc.store property to true during indexing. It increases considerably the size of the index, however, because you are duplicating the data.". So, how exactly do I do this? I tried setting this property in the code itself. But, it didn't work. I haven't modified the code in any other way than to add this line:

properties.setProperty("doc.store", "true");

to all the codes at the appropriate positions.

Thank you :)

from indexwikipedia.

lemire avatar lemire commented on June 11, 2024

Please try with current version, after pulling in the last commits, and reopen if you still have a problem.

from indexwikipedia.

anikethjr avatar anikethjr commented on June 11, 2024

Thank you 👍 It works...

from indexwikipedia.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.