Hi Frnz,

anyone can help me with code , how to setting up "solr search engine " for document search on ur desktop in .net

Recommended Answers

All 2 Replies

First Add the namespace
Using.System.IO;

Function to get all the folders present in that particular location,Use

string[] folders = Directory.GetDirectories(@"C:\myfolder\Projects");

Function to get all the files present in that particular location,Use

string[] files = Directory.GetFiles(@"C:\myfolder\Projects");

Function to get all the files present in that particular location with particular extension,Use

string[] cs_files= Directory.GetFiles(@"C:\myfolder\Projects","*.cs");

Function to get all the files present in that particular location and its subfolders with particular extension,Use

string[] cs_files= Directory.GetFiles(@"C:\myfolder\Projects","*.cs",SearchOption.AllDirectories);

Does this help you?

Hi ,

thanks a lotssss for your help , but what i have to impletent is that same like windows search that you use for to searhc any document or any file on your local machine. same i have to implement using SOLR and i am not getting from where to start plz help me :).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.