如何使用WPF在C#中创建solrnet索引 [英] How to create solrnet index in C# using WPF

查看:87
本文介绍了如何使用WPF在C#中创建solrnet索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是solrnet的新手,我想在wpf中创建一个应用程序,用于索引和搜索来自sql server的数据如何操作。如果有人有想法,请帮助我。



我尝试过:



我访问了很多网站,但没有清楚地理解

I am new in solrnet and i want to create an application in wpf for indexing and searching data from sql server how to do it . if any one have an idea please help me .

What I have tried:

I visited many sites but did not understand clearly

推荐答案

你的'要求'并不是非常好 - 我们没有了解你的理解和经验水平,以及你不了解的内容。



直到5分钟之前我对srr知道SolrNet - 但快速搜索发现了文章我喜欢 Solrnet,.Net的Solr客户端库 - ChrisUmbel.com [ ^ ] ...在那篇文章中,Chris有一个写入数据部分 - 我的想法是,来自SQL,你会/可以



- 创建一个DataTable并使用来自SQL Server的信息加载它

- 循环通过DataTable,做'每行的Solr.Add()' />


也许我建议甚至不要担心WPF位开始 - 开始编写一些测试控制台程序,掌握SolrNet,当你这样做的时候你可以为你的WPF程序充实设计

- 从SQL数据库中选择数据需要什么样的输入,

- 你将如何获得查询来自用户的参数,即'标签'等,

- 您将如何显示结果
Your 'requirements' aren't terribly good - we have no idea of what your level of understanding and experience is, and what you didnt understand.

Until 5 mins ago I had sfa knowledge of SolrNet - but a quick search found an article I like Solrnet, a Solr Client Library for .Net - ChrisUmbel.com[^] ... In that article Chris has a section 'Writing Data' - my thoughts are, for data from SQL, you would/could

- Create a DataTable and Load it with information from SQL server
- Loop through the DataTable, Doing 'Solr.Add()' for each row

Maybe I'd suggest dont even worry about the WPF bit to start with - start writing some test console programs, get to grips with SolrNet, and while you're doing that you can flesh out a design for your WPF program
- what sort of input you need to select your data from the SQL database,
- how you are going to get query parameters from the user ie 'tags' and the like,
- how you are going to display the results back


这篇关于如何使用WPF在C#中创建solrnet索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆