DotLucene with ASP?

  • Thread starter Thread starter ron.abramson
  • Start date Start date
R

ron.abramson

I have been successfully using Java Lucene with various Java, Python
and PHP projects, and would like to try more of a native Microsoft
approach. My immediate total newbie question is how to call functions
in Lucene.Net.dll from ASP or VBA code. I tried loading this dll with
Regsvr32 and it said the dll was not loadable. I don't really want to
start compiling C#. Is there another way to load this or create a
reference? This is so easy to do with Python, so I imagine there must
be a comparable way to do it with ASP.
 
If the uses clause dont work (at the top of the class)

i would suggest to register it in the GAC (Global Assembly Cache)
Then it would be accesible from the c#

OR

I think you can import the DLL from the project using Add Reference (Right
click on the project)

Regards
Martin
 
I have been successfully using Java Lucene with various Java, Python
and PHP projects, and would like to try more of a native Microsoft
approach. My immediate total newbie question is how to call functions
in Lucene.Net.dll from ASP or VBA code. I tried loading this dll with
Regsvr32 and it said the dll was not loadable. I don't really want to
start compiling C#. Is there another way to load this or create a
reference? This is so easy to do with Python, so I imagine there must
be a comparable way to do it with ASP.

DotLucence is a .NET version of Lucene. If you're using vanilla ASP or
VBA, you can't use .NET libraries (easily, anyway).
 
Yes I figured it out. Just add a reference in the Project Explorer to
Lucene.Net.dll. I was just unfamiliar with the IDE (I'm using the
Visual Studio .NET 2005 Express Web Developer and C# that I downloaded
from Microsoft - it is very nice).

After that, all the Lucene content indexing and retrieval functions
worked for web sites programmed in either C# or VB. Works pretty much
the same as the other Lucene ports I've tried. Got an intranet search
engine going in no time.
 
Back
Top