项目搜索算法 [英] searching algorithm for the project

查看:92
本文介绍了项目搜索算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我现在正在考虑对xml数据库中的搜索文本进行高效的c#编码搜索

类似于pdf中的"oop",因为用户需要搜索


解决方案

请参阅我对该问题的评论:这取决于许多因素.您可能只想查找的一件事是 LINQ to XML :
http://msdn.microsoft.com/en-us/library/bb387098.aspx [ ^ ].

但是,这只是可能的方法之一.我提到它的唯一原因是通用的,因此它在很大程度上不取决于问题中缺少的细节.当您考虑所有相关细节时,某些其他解决方案可能会好得多.由于我什至都不知道您使用"XML数据库"的动机(无论它是什么),因此我不确定这是否是适合您的决定.它具有最小的开销(没有第三方代码),但是主要取决于所需的数据量和可伸缩性.对于某些可伸缩性要求,我不确定您是否可以解决使用某些关系数据库的想法.

—SA


hi
I am now considering an efficient searching c# coding for search text in xml database

like "oop" in pdf as user need to search


can some one give coding help for me?

解决方案

Please see my comment to the question: it depends on a number of factors. Just one thing you might want to look for is LINQ to XML:
http://msdn.microsoft.com/en-us/library/bb387098.aspx[^].

However, this is only one of possible approaches. The only reason I mentioned it is universal, so it does not depend much on the detail missing from the question. When you consider all relevant detail, some other solution may appear much better. As I don''t even know your motivation for using "XML database" (whatever it is), I''m not sure that even this is the right decision for you. It has the minimum overhead (no third party codes), but majorly depends on volume of data and scalability you need. With certain scalability requirements, I''m not sure that you could through out the idea of using some relational database instead.

—SA


这篇关于项目搜索算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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