Introduction to Lucene Dot Net - PowerPoint PPT Presentation

About This Presentation
Title:

Introduction to Lucene Dot Net

Description:

Lucene.Net is a line-by-line port of well known Apache Lucene , which is an elite, full-highlighted content Internet searching library composed altogether in Java. It is an innovation reasonable for about any application that requires a full-message look. Particularly, an application where you need to accomplish something near Google indexed lists, and no simply list elements, however, quick list elements, or might be just madly quick list elements, yet just in your application and on your terms! – PowerPoint PPT presentation

Number of Views:60

less

Transcript and Presenter's Notes

Title: Introduction to Lucene Dot Net


1
Introduction to Lucene Dot Net
Dot Net Training Institute Pune
2
what is Lucent.net?
  • Lucene.Net is a line-by-line port of well known
    Apache Lucene , which is an elite,
    full-highlighted content Internet searching
    library composed altogether in Java.
  • It is an innovation reasonable for about any
    application that requires a full-message look.
    Particularly, an application where you need to
    accomplish something near Google indexed lists,
    and no simply list elements, however, quick list
    elements, or might be just madly quick list
    elements, yet just in your application and on
    your terms!

Dot Net Training Institute Pune
3
The primary improvement steps -
  • Initialize Directory and IndexWriter
  • Add Documents to the Index
  • Create the Query
  • Pass the Query to the IndexSearcher
  • Iterates over the outcomes
  • Close everything

Dot Net Training Institute Pune
4
Step 1. Initialize Directory and IndexWriter
  • The initial step is introducing the Directory and
    the IndexWriter. In a web application, as
    Subtext, this is doubtlessly done in the
    application startup and afterward, the occurrence
    put away in a worldwide variable some place (or
    got to through a Singleton) since stand out
    Writer can read the Dictionary in the meantime.
  • Whats more, when you make the IndexWriter you
    can supply the analyzer that will be utilized as
    a matter of course to record all the content.

Dot Net Training Institute Pune
5
Step 2. Add Documents to the Index
  • Every record is made by different Fields. You
    need to make a Document with every one of the
    Fields that must be recorded furthermore the ones
    you require keeping in mind the end goal to
    interface the outcome to the genuine archive that
    is being filed (for instance the id of the post).
  • Also, once made the Document, you need to add it
    to the Directory with the IndexWriter.
  • Now, you could either include more reports or
    close the IndexWriter. The file will be spared to
    the Directory and can be re-opened later to add
    more Documents or to perform questions on in.

Dot Net Training Institute Pune
6
Step 3. Create the Query
  • When you have every one of your records in the
    file, its an ideal opportunity to do a few
    questions.
  • You can make the question either through the
    QueryParser or make a Query protest
    straightforwardly by means of API.

Dot Net Training Institute Pune
7
Step 4. Pass the Query to the IndexSearcher
  • Furthermore, once you have the Query object you
    need to pass it to the Search strategy for an
    IndexSearcher.
  • One admonition is that the IndexSearcher sees the
    record just at the point it was at the time it
    was opened. So as to hunt over the latest
    arrangement of reports you need to re-open the
    IndexSearcher.
  • Be that as it may, re-opening requires some
    investment and assets, so in a web application,
    you might need to store it some way or another
    and re-open it eventually.

Dot Net Training Institute Pune
8
Step 5. Iterates over the outcomes
  • The Search technique gives back the outcomes,
    inside a Hit item, which contains every one of
    the records that match the question, requested by
    Score, which is an exceptionally complex math
    equation that ought to let you know how much the
    report found is identified with your inquiry. For
    more data allude to Lucene site Scoring.

Dot Net Training Institute Pune
9
Step 6. Close everything
  • Also, once you are finished with everything,
    close the IndexWriter, IndexSearcher, and the
    Directory object. In a web application, this is
    normally performed in the application shutdown
    event.
  • Well, at a certain point it can be clearly seen
    that Lucene.NET strives to be better.
  • For More Details Visit CRB Tech Reviews

Dot Net Training Institute Pune
10
Thank You..!
Dot Net Training Institute Pune
Write a Comment
User Comments (0)
About PowerShow.com