You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by pof <Me...@gmail.com> on 2009/06/09 04:23:43 UTC

A few Solr questions

Hi, I am fairly new to indexing and I have just written three java apps (an
indexer, a searcher and a webserver using jetty to accept POSTed queries
from a powerbuilder app). I am at the stage where I want a way to replicate
my index for backup, initially I was just going to use rsync but now I keep
hearing about Solr. Anyway, here are the questions:

- Does Solr need you to have programmed your own indexer and searcher or
does it use its own ones?
- Is there any advantages to using Solr rather than running my own indexer
in a cron job every so often and running my own jetty websever?
- Can I just use Solr's replication without the searching and caching etc.?
If so is there any advantages doing this over simply rsync?

Thanks, Brett.
-- 
View this message in context: http://www.nabble.com/A-few-Solr-questions-tp23935377p23935377.html
Sent from the Solr - Dev mailing list archive at Nabble.com.


Re: A few Solr questions

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
you may need to write a custome responseWriter and plug it in

On Tue, Jun 9, 2009 at 11:30 AM, pof<Me...@gmail.com> wrote:
>
> Another question:
>
> - Is there a way to customise the xml result set from a search? What I'm
> looking for is something like this:
> <response>
>   <doc>
>      <id>1233456</id>
>      <path>C:\temp\doc123.doc</path>
>   </doc>
> </response>
>
> No "lst" tag or children, no timestamps.
>
> Thanks, Brett.
>
>
> pof wrote:
>>
>> Hi, I am fairly new to indexing and I have just written three java apps
>> (an indexer, a searcher and a webserver using jetty to accept POSTed
>> queries from a powerbuilder app). I am at the stage where I want a way to
>> replicate my index for backup, initially I was just going to use rsync but
>> now I keep hearing about Solr. Anyway, here are the questions:
>>
>> - Does Solr need you to have programmed your own indexer and searcher or
>> does it use its own ones?
>> - Is there any advantages to using Solr rather than running my own indexer
>> in a cron job every so often and running my own jetty websever?
>> - Can I just use Solr's replication without the searching and caching
>> etc.? If so is there any advantages doing this over simply rsync?
>>
>> Thanks, Brett.
>>
>
> --
> View this message in context: http://www.nabble.com/A-few-Solr-questions-tp23935377p23936765.html
> Sent from the Solr - Dev mailing list archive at Nabble.com.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Re: A few Solr questions

Posted by pof <Me...@gmail.com>.
The XSLT transformation works beautifully, one thing though, where can I find
the XSLT classpath?

Mucho gracias! Brett.


Yonik Seeley-2 wrote:
> 
> On Tue, Jun 9, 2009 at 2:00 AM, pof <Me...@gmail.com> wrote:
>> - Is there a way to customise the xml result set from a search?
> 
> There's a server-side XSLT transform available.
> 
> You could always write your own response writer too - but it's not
> generally recommended (that's not a "stable" user level interface...
> it will change from release to release w/o regard to back
> compatibility of implementations because it is assumed that all
> implementations are internal to Solr).
> 
> -Yonik
> http://www.lucidimagination.com
> 
> 

-- 
View this message in context: http://www.nabble.com/A-few-Solr-questions-tp23935377p23956377.html
Sent from the Solr - Dev mailing list archive at Nabble.com.


Re: A few Solr questions

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Tue, Jun 9, 2009 at 2:00 AM, pof <Me...@gmail.com> wrote:
> - Is there a way to customise the xml result set from a search?

There's a server-side XSLT transform available.

You could always write your own response writer too - but it's not
generally recommended (that's not a "stable" user level interface...
it will change from release to release w/o regard to back
compatibility of implementations because it is assumed that all
implementations are internal to Solr).

-Yonik
http://www.lucidimagination.com

Re: A few Solr questions

Posted by pof <Me...@gmail.com>.
Another question:

- Is there a way to customise the xml result set from a search? What I'm
looking for is something like this:
<response>
   <doc>
      <id>1233456</id>
      <path>C:\temp\doc123.doc</path>
   </doc>
</response>

No "lst" tag or children, no timestamps.

Thanks, Brett.


pof wrote:
> 
> Hi, I am fairly new to indexing and I have just written three java apps
> (an indexer, a searcher and a webserver using jetty to accept POSTed
> queries from a powerbuilder app). I am at the stage where I want a way to
> replicate my index for backup, initially I was just going to use rsync but
> now I keep hearing about Solr. Anyway, here are the questions:
> 
> - Does Solr need you to have programmed your own indexer and searcher or
> does it use its own ones?
> - Is there any advantages to using Solr rather than running my own indexer
> in a cron job every so often and running my own jetty websever?
> - Can I just use Solr's replication without the searching and caching
> etc.? If so is there any advantages doing this over simply rsync?
> 
> Thanks, Brett.
> 

-- 
View this message in context: http://www.nabble.com/A-few-Solr-questions-tp23935377p23936765.html
Sent from the Solr - Dev mailing list archive at Nabble.com.


Re: A few Solr questions

Posted by pof <Me...@gmail.com>.
Can I use my own indexer though because I have spent a lot of time adding
docx and xlsx handling, zip handling, multiple charset handling, email
attachment parsing etc. etc.?

To be honest I'm not sold on Solr so far, my queries will be coming from a
powerbuilder app and it will need a very specific xml result set POSTed back
(thats why I need my own searcher as well).

Thanks, Brett.

Matt Weber-2 wrote:
> 
> 1.  Solr has it's own indexer and search so you don't need to program  
> your own.
> 2.  Yes, a lot.  Solr can scale when/if you need to.  Solr is stable.   
> If you need support you can get it from companies such as Lucid  
> Imagination.  There are a lot more.
> 3.  Do you mean use Solr to replicate your own index?  If yes, then  
> the answer is no.  If you want to replicate a Solr index without using  
> Solr's search or caching the answer is yes but I don't know why you  
> would not use Solr's searcher.
> 
> Thanks,
> 
> Matt Weber
> eSr Technologies
> http://www.esr-technologies.com
> 
> 
> 
> 
> On Jun 8, 2009, at 7:23 PM, pof wrote:
> 
>>
>> Hi, I am fairly new to indexing and I have just written three java  
>> apps (an
>> indexer, a searcher and a webserver using jetty to accept POSTed  
>> queries
>> from a powerbuilder app). I am at the stage where I want a way to  
>> replicate
>> my index for backup, initially I was just going to use rsync but now  
>> I keep
>> hearing about Solr. Anyway, here are the questions:
>>
>> - Does Solr need you to have programmed your own indexer and  
>> searcher or
>> does it use its own ones?
>> - Is there any advantages to using Solr rather than running my own  
>> indexer
>> in a cron job every so often and running my own jetty websever?
>> - Can I just use Solr's replication without the searching and  
>> caching etc.?
>> If so is there any advantages doing this over simply rsync?
>>
>> Thanks, Brett.
>> -- 
>> View this message in context:
>> http://www.nabble.com/A-few-Solr-questions-tp23935377p23935377.html
>> Sent from the Solr - Dev mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/A-few-Solr-questions-tp23935377p23935538.html
Sent from the Solr - Dev mailing list archive at Nabble.com.


Re: A few Solr questions

Posted by Matt Weber <ma...@mattweber.org>.
1.  Solr has it's own indexer and search so you don't need to program  
your own.
2.  Yes, a lot.  Solr can scale when/if you need to.  Solr is stable.   
If you need support you can get it from companies such as Lucid  
Imagination.  There are a lot more.
3.  Do you mean use Solr to replicate your own index?  If yes, then  
the answer is no.  If you want to replicate a Solr index without using  
Solr's search or caching the answer is yes but I don't know why you  
would not use Solr's searcher.

Thanks,

Matt Weber
eSr Technologies
http://www.esr-technologies.com




On Jun 8, 2009, at 7:23 PM, pof wrote:

>
> Hi, I am fairly new to indexing and I have just written three java  
> apps (an
> indexer, a searcher and a webserver using jetty to accept POSTed  
> queries
> from a powerbuilder app). I am at the stage where I want a way to  
> replicate
> my index for backup, initially I was just going to use rsync but now  
> I keep
> hearing about Solr. Anyway, here are the questions:
>
> - Does Solr need you to have programmed your own indexer and  
> searcher or
> does it use its own ones?
> - Is there any advantages to using Solr rather than running my own  
> indexer
> in a cron job every so often and running my own jetty websever?
> - Can I just use Solr's replication without the searching and  
> caching etc.?
> If so is there any advantages doing this over simply rsync?
>
> Thanks, Brett.
> -- 
> View this message in context: http://www.nabble.com/A-few-Solr-questions-tp23935377p23935377.html
> Sent from the Solr - Dev mailing list archive at Nabble.com.
>