does SolrNet support indexing of Database tables and XML files

206 views
Skip to first unread message

alok dayal

unread,
Sep 2, 2010, 6:33:18 AM9/2/10
to sol...@googlegroups.com
Dear All,
 
I've developed an application in C#, SolrNet which is indexing and searching text file. Now I am trying to change the application and trying to index and search database table as well as XML file but its not working.
 
My question is that whether SolrNet support indexing and searching of database tables and XML file or it only supports the flat file.
 
ALOK DAYAL 

Mauricio Scheffer

unread,
Sep 2, 2010, 9:37:20 AM9/2/10
to sol...@googlegroups.com
Data sources are out of the scope of SolrNet, so you can feed it data coming from anywhere (flat files, XML, database tables, anything).

--
Mauricio


--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To post to this group, send email to sol...@googlegroups.com.
To unsubscribe from this group, send email to solrnet+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/solrnet?hl=en.

alokdayal

unread,
Sep 3, 2010, 5:44:39 AM9/3/10
to SolrNet
Hi Mauricio,

What do u mean by that? As your statement seems both ways correct.

---
ALOK DAYAL


On Sep 2, 6:37 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> > solrnet+u...@googlegroups.com<solrnet%2Bunsu...@googlegroups.com­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/solrnet?hl=en.- Hide quoted text -
>
> - Show quoted text -

Mauricio Scheffer

unread,
Sep 3, 2010, 9:04:40 AM9/3/10
to SolrNet
Sorry if I wasn't clear. It means that *you* have to write the code.
Here's some pseudocode:

var rows = query "select * from mytable"
for each row in rows:
var doc = new MySolrDocument()
doc.Name = row["Name"]
populate all other doc properties from row columns
solr.Add(doc)
solr.Commit()

--
Mauricio
> > >http://groups.google.com/group/solrnet?hl=en.-Hide quoted text -
Reply all
Reply to author
Forward
0 new messages