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 584047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:51:26+00:00 2026-05-13T14:51:26+00:00

Our company has a MyAccount where we would like to put a knowledge base

  • 0

Our company has a “MyAccount” where we would like to put a knowledge base behind. We have a CRM system where the help calls are recorded and some knowledge base articles are written into the database. The master problem (same basic help call) is tagged with keyword(s). We also have CHM help files for the software we sell (some users never use the internal help system, they go online), PDF whitepapers and tutorials in a protected directory. I would like to either buy, or quickly build an ASP.NET solution where a user can search the database to display the help article and also show tutorials or whitepapers or a help file from the CHM.

Requirements: It must look like our website. I have a master page, so any content page has to pretty much be white…no graphics, colors, etc.

Does anyone know a 3rd party search engine, or an example with some source code on how to use Lucene.NET to build a search index database from an existing database?

  • 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-05-13T14:51:26+00:00Added an answer on May 13, 2026 at 2:51 pm

    You can build such solution with Lucene .Net.
    Keep your docs in database (as already) and index with Lucene.Net docs you want.

    Lucene will have its own index in file system.

    You need to provide synchronization between your docs in DB and Lucene index, so when document in DB changes, you need to re-index it with Lucene.
    Synchronization (matching between DB and Lucene index) can be based on some unique key value from DB (ex: ID).

    So, when you want to add some document to Lucene index, you index the document content (you don’t need to save content in Lucene) and ‘save’ it in Lucene with unique key value from DB (lets say ID).

    Then you can search Lucene index and get list of matching document IDs.
    And retreive them from your DB by those IDs and show to user.

    Below is example method from my project, it adds document to Lucene index.
    InformationAsset in method argument is the document from DB I want to index.
    This method creates ‘Lucene document’ with few ‘fields’:

    • ‘field’: content of the doc from db (InformationAsset from method argument)
    • ‘fieldId’: it’s ID of the InformationAsset from database, to match Database and Lucene index
    • ‘fieldPubDate’: publication date, I can create advanced queries to Lucene engine basing on all fields.
    • ‘fieldDataSource’: it’s some kind of category.

          public void AddToIndex(Entities.InformationAsset infAsset, IList<Keyword> additionalKeywords)
      {
          Analyzer analyzer = new StandardAnalyzer();
      
          IndexWriter indexWriter = new IndexWriter(LuceneDir, analyzer, false);
      
          Document doc = new Document();
      
          // string z dodatkowymi slowami po ktorych ma byc tez zindeksowana tresc
          string addKeysStr = "";
          if(additionalKeywords != null)
          {
              foreach (Keyword keyword in additionalKeywords)
              {
                  addKeysStr += " " + keyword.Value;
              }
          }
          addKeysStr += " " + m_RootKeyword;
      
          string contentStr;
          contentStr = infAsset.Title + " " + infAsset.Content + addKeysStr;
      
          // indeksacja pola z trescia
          Field field = new Field(LuceneFieldName.Content, contentStr, Field.Store.NO, Field.Index.TOKENIZED,
                                  Field.TermVector.YES);
          // pole z Id
          Field fieldId = new Field(LuceneFieldName.Id, infAsset.Id.ToString(), Field.Store.YES, Field.Index.UN_TOKENIZED);
      
          // pole publish date
          Field fieldPubDate = new Field(LuceneFieldName.PublishDate,
                                         DateTools.DateToString(infAsset.PublishingDate, DateTools.Resolution.MINUTE),
                                         Field.Store.YES, Field.Index.NO_NORMS, Field.TermVector.YES);
      
          // pole DataSource
          // pole z Id
          Field fieldDataSource = new Field(LuceneFieldName.DataSourceId, infAsset.DataSource.Id.ToString(), Field.Store.YES,
                                            Field.Index.UN_TOKENIZED);
      
          doc.Add(field);
          doc.Add(fieldId);
          doc.Add(fieldPubDate);
          doc.Add(fieldDataSource);
      
          doc.SetBoost((float)CalculateDocBoostForInfAsset(infAsset));
      
          indexWriter.AddDocument(doc);
      
          indexWriter.Optimize();
          indexWriter.Close();
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our company has a point of sale system with many extras, such as ordering
Our company has an intranet consisting of several e-mail templates filled with variables (like
Our company has offices in the US and the UK. We have a MOSS
Our company has a large number of projects that have gone from VSS to
Our company has 4 business entities, so I have created 4 different databases for
Our company has until bought a lot VS Pro/Premium and Ultimate Licenses, and each
Our company has for many years had multiple domain names to protect our product
Our company has thousands of PDF documents. How do we create a simple search
Our company has a policy imposing the requirement of keeping source code in a
Our company has a fairly large ASP.NET web application. The app is already broken

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.