• 大小: 2.99M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: Lucene  客户端  服务  框架  

资源简介


1、可以将索引和检索的压力放到网络的其它主机上,服务器不用再开发,直接运行就可以;

2、客户端完全可以脱离Lucene.Net,只要关心相关的几个Api就可以;

3、多个客户端也可以共用同一个索引,也可以不共用。


资源截图

代码片段和文件信息

using LuceneLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LuceneDemo
{
    public partial class MainForm : Form
    {
        private Lucene client = new Lucene(“Index_News“);

        public MainForm()
        {
            InitializeComponent();
            this.Load += MainForm_Load;
        }

        private async void MainForm_Load(object sender EventArgs e)
        {
            var state = await this.client.Connect(IPAddress.Loopback 8088);
            this.Text = “连接服务器“ + (state ? “成功“ : “失败“);

            if (state)
            {
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-03 13:10  LuceneServer-master\
     文件        2518  2015-07-03 13:10  LuceneServer-master\.gitattributes
     文件        2233  2015-07-03 13:10  LuceneServer-master\.gitignore
     目录           0  2015-07-03 13:10  LuceneServer-master\Libs\
     文件      200704  2015-07-03 13:10  LuceneServer-master\Libs\ICSharpCode.SharpZipLib.dll
     文件      753664  2015-07-03 13:10  LuceneServer-master\Libs\Lucene.Net.dll
     文件       71168  2015-07-03 13:10  LuceneServer-master\Libs\NetworkSocket.dll
     文件      142004  2015-07-03 13:10  LuceneServer-master\Libs\NetworkSocket.xml
     文件       12288  2015-07-03 13:10  LuceneServer-master\Libs\PanGu.HighLight.dll
     文件        7168  2015-07-03 13:10  LuceneServer-master\Libs\PanGu.Lucene.Analyzer.dll
     文件     3801600  2015-07-03 13:10  LuceneServer-master\Libs\PanGu.dll
     文件      282112  2015-07-03 13:10  LuceneServer-master\Libs\Topshelf.dll
     目录           0  2015-07-03 13:10  LuceneServer-master\LuceneDemo\
     文件        3944  2015-07-03 13:10  LuceneServer-master\LuceneDemo\LuceneDemo.csproj
     文件        4931  2015-07-03 13:10  LuceneServer-master\LuceneDemo\MainForm.Designer.cs
     文件        1923  2015-07-03 13:10  LuceneServer-master\LuceneDemo\MainForm.cs
     文件        6407  2015-07-03 13:10  LuceneServer-master\LuceneDemo\MainForm.resx
     文件        1205  2015-07-03 13:10  LuceneServer-master\LuceneDemo\News.cs
     文件         441  2015-07-03 13:10  LuceneServer-master\LuceneDemo\Program.cs
     目录           0  2015-07-03 13:10  LuceneServer-master\LuceneDemo\Properties\
     文件        1358  2015-07-03 13:10  LuceneServer-master\LuceneDemo\Properties\AssemblyInfo.cs
     文件        3731  2015-07-03 13:10  LuceneServer-master\LuceneDemo\QueryForm.Designer.cs
     文件        1430  2015-07-03 13:10  LuceneServer-master\LuceneDemo\QueryForm.cs
     文件        5698  2015-07-03 13:10  LuceneServer-master\LuceneDemo\QueryForm.resx
     文件         141  2015-07-03 13:10  LuceneServer-master\LuceneDemo\app.config
     目录           0  2015-07-03 13:10  LuceneServer-master\LuceneLib\
     文件         392  2015-07-03 13:10  LuceneServer-master\LuceneLib\ILnPage.cs
     目录           0  2015-07-03 13:10  LuceneServer-master\LuceneLib\LN\
     文件         751  2015-07-03 13:10  LuceneServer-master\LuceneLib\LN\LnField.cs
     文件        1461  2015-07-03 13:10  LuceneServer-master\LuceneLib\LN\LnMatchField.cs
     文件        1204  2015-07-03 13:10  LuceneServer-master\LuceneLib\LN\LnModel.cs
............此处省略43个文件信息

评论

共有 条评论