Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 27-Apr-16 1:32am
Comments
Richard MacCutchan 27-Apr-16 7:13am    
This question is impossible to answer here. Go to the solrnet website and ask there.
Member 11835578 27-Apr-16 7:29am    
have you any idea about those sites?

1 solution

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
 
Share this answer
 
Comments
Member 11835578 27-Apr-16 7:38am    
THANKS Garth for your support , but have you any idea about how to create a sql database index using solr.net ?
Garth J Lancaster 27-Apr-16 7:52am    
I would be starting from the same point as you - it looks like you manually modify schema.xml and define the 'fields' - Im not sure why you want to 'create a sql database index using solr.net' - nothing in the few articles I read mentioned that - just modifying schema.xml

http://wiki.apache.org/solr/SchemaXml
http://www.solrtutorial.com/schema-xml.html
http://www.xaviermorera.com/2015/03/using-solr-from-c-made-dead-easy-with-solrnet/
Member 11835578 27-Apr-16 8:03am    
I have a large data in sql database I want a appication for indexing and searching into data using solrnet so i want to use sql server .
Garth J Lancaster 27-Apr-16 8:17am    
check out these two posts

https://gist.github.com/maxivak/3e3ee1fca32f3949f052
http://blog.comperiosearch.com/blog/2014/08/28/indexing-database-using-solr/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900