You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Manupriya <ma...@gmail.com> on 2008/12/23 14:17:49 UTC
emample for using SOLR for search against database tables
Hi,
I am very new to using SOLR. I referred through the documentation for SOLR
and tried to understand it.
Now have a feel of SOLR. My actual requirement is to use SOLR for search
against the database tables. I refered the link at
http://wiki.apache.org/solr/DataImportHandler#head-ac5699cd97e4dced90f41ab0ff81fb752e9d350c
This link talks about web application only. Can I implement search against
DB tables through a standalone Java class?
Thanks,
Manu
--
View this message in context: http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144315.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: emample for using SOLR for search against database tables
Posted by Chris Hostetter <ho...@fucit.org>.
: Well, there is the EmbeddedSolrServer - Solr runs totally fine as a pure Java
: API. It can also be embedded in your own web apps without having Solr as a
: standalone service.
and the starting point...
http://wiki.apache.org/solr/Solrj
IIRC: the API for monitoring/admining DataImportHandler isn't currently
very SOlrJ friendly, but it can still be used even in an embedded context.
-Hoss
Re: emample for using SOLR for search against database tables
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Well, there is the EmbeddedSolrServer - Solr runs totally fine as a
pure Java API. It can also be embedded in your own web apps without
having Solr as a standalone service.
Erik
On Dec 23, 2008, at 10:29 AM, Glen Newton wrote:
> Depending on your requirements, using Lucene directly instead of Solr
> might be appropriate.
> Even in a web environment.
>
> Not likely a popular statement on the Solr list, but one that you
> should consider. :-)
>
> -Glen
>
> 2008/12/23 Manupriya <ma...@gmail.com>:
>>
>> Yes... At present I want SOLR to run within my standalone java
>> application
>> which at a later stage may be ported to a web application. It would
>> be great
>> if I could get some initial pointers to achieve that.
>>
>> Thanks,
>> Manu
>>
>> David Smiley @MITRE.org wrote:
>>>
>>> Absolutely... most of us come from a web-app world but there isn't
>>> anything intrinsically web-app about Solr except for the obvious
>>> fact that
>>> Solr itself runs on a servlet engine.
>>>
>>> If you mean is Solr embeddable so that it could run within your Java
>>> application (which may or may not be a web-app; doesn't matter)
>>> then I
>>> believe you can do that too but I'll leave it to others to
>>> describe how to
>>> do that if in fact that is what you want.
>>>
>>> ~ David
>>>
>>>
>>> On 12/23/08 8:17 AM, "Manupriya" <ma...@gmail.com> wrote:
>>>
>>>
>>>
>>> Hi,
>>>
>>> I am very new to using SOLR. I referred through the documentation
>>> for SOLR
>>> and tried to understand it.
>>>
>>> Now have a feel of SOLR. My actual requirement is to use SOLR for
>>> search
>>> against the database tables. I refered the link at
>>> http://wiki.apache.org/solr/DataImportHandler#head-ac5699cd97e4dced90f41ab0ff81fb752e9d350c
>>>
>>> This link talks about web application only. Can I implement search
>>> against
>>> DB tables through a standalone Java class?
>>>
>>> Thanks,
>>> Manu
>>> --
>>> View this message in context:
>>> http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144315.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144693.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
>
> -
Re: emample for using SOLR for search against database tables
Posted by Glen Newton <gl...@gmail.com>.
Depending on your requirements, using Lucene directly instead of Solr
might be appropriate.
Even in a web environment.
Not likely a popular statement on the Solr list, but one that you
should consider. :-)
-Glen
2008/12/23 Manupriya <ma...@gmail.com>:
>
> Yes... At present I want SOLR to run within my standalone java application
> which at a later stage may be ported to a web application. It would be great
> if I could get some initial pointers to achieve that.
>
> Thanks,
> Manu
>
> David Smiley @MITRE.org wrote:
>>
>> Absolutely... most of us come from a web-app world but there isn't
>> anything intrinsically web-app about Solr except for the obvious fact that
>> Solr itself runs on a servlet engine.
>>
>> If you mean is Solr embeddable so that it could run within your Java
>> application (which may or may not be a web-app; doesn't matter) then I
>> believe you can do that too but I'll leave it to others to describe how to
>> do that if in fact that is what you want.
>>
>> ~ David
>>
>>
>> On 12/23/08 8:17 AM, "Manupriya" <ma...@gmail.com> wrote:
>>
>>
>>
>> Hi,
>>
>> I am very new to using SOLR. I referred through the documentation for SOLR
>> and tried to understand it.
>>
>> Now have a feel of SOLR. My actual requirement is to use SOLR for search
>> against the database tables. I refered the link at
>> http://wiki.apache.org/solr/DataImportHandler#head-ac5699cd97e4dced90f41ab0ff81fb752e9d350c
>>
>> This link talks about web application only. Can I implement search against
>> DB tables through a standalone Java class?
>>
>> Thanks,
>> Manu
>> --
>> View this message in context:
>> http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144315.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144693.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
-
Re: emample for using SOLR for search against database tables
Posted by Manupriya <ma...@gmail.com>.
Yes... At present I want SOLR to run within my standalone java application
which at a later stage may be ported to a web application. It would be great
if I could get some initial pointers to achieve that.
Thanks,
Manu
David Smiley @MITRE.org wrote:
>
> Absolutely... most of us come from a web-app world but there isn't
> anything intrinsically web-app about Solr except for the obvious fact that
> Solr itself runs on a servlet engine.
>
> If you mean is Solr embeddable so that it could run within your Java
> application (which may or may not be a web-app; doesn't matter) then I
> believe you can do that too but I'll leave it to others to describe how to
> do that if in fact that is what you want.
>
> ~ David
>
>
> On 12/23/08 8:17 AM, "Manupriya" <ma...@gmail.com> wrote:
>
>
>
> Hi,
>
> I am very new to using SOLR. I referred through the documentation for SOLR
> and tried to understand it.
>
> Now have a feel of SOLR. My actual requirement is to use SOLR for search
> against the database tables. I refered the link at
> http://wiki.apache.org/solr/DataImportHandler#head-ac5699cd97e4dced90f41ab0ff81fb752e9d350c
>
> This link talks about web application only. Can I implement search against
> DB tables through a standalone Java class?
>
> Thanks,
> Manu
> --
> View this message in context:
> http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144315.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
>
>
--
View this message in context: http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144693.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: emample for using SOLR for search against database tables
Posted by "Smiley, David W." <ds...@mitre.org>.
Absolutely... most of us come from a web-app world but there isn't anything intrinsically web-app about Solr except for the obvious fact that Solr itself runs on a servlet engine.
If you mean is Solr embeddable so that it could run within your Java application (which may or may not be a web-app; doesn't matter) then I believe you can do that too but I'll leave it to others to describe how to do that if in fact that is what you want.
~ David
On 12/23/08 8:17 AM, "Manupriya" <ma...@gmail.com> wrote:
Hi,
I am very new to using SOLR. I referred through the documentation for SOLR
and tried to understand it.
Now have a feel of SOLR. My actual requirement is to use SOLR for search
against the database tables. I refered the link at
http://wiki.apache.org/solr/DataImportHandler#head-ac5699cd97e4dced90f41ab0ff81fb752e9d350c
This link talks about web application only. Can I implement search against
DB tables through a standalone Java class?
Thanks,
Manu
--
View this message in context: http://www.nabble.com/emample-for-using-SOLR-for-search-against-database-tables-tp21144315p21144315.html
Sent from the Solr - User mailing list archive at Nabble.com.