Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Ranjeet

Hi,

I am using Solr 1.3 and Solrj as a Java Client. I am Integarating Solrj in 
Spring framwork, I am facing a problem, Spring framework is not inializing 
CommonsHttpSolrServer class, how can  I define this class to get the instance 
of SolrServer to invoke furthur method on this. 

Thanks & Regards,
Ranjeet Jha

Re: Solr Logo thought

2008-08-04 Thread Shalin Shekhar Mangar
On Sun, Aug 3, 2008 at 4:51 PM, Andrew Savory <[EMAIL PROTECTED]> wrote:

> Hi,
>
> 2008/8/2 Koji Sekiguchi <[EMAIL PROTECTED]>:
> >> Where is the second poll running?
> >
> > http://people.apache.org/~shalin/poll2.html
>
> Ok. Whilst it's entirely my own fault for not monitoring both the
> -user and the -dev list, I've been watching the dev list since the
> issue first came up there, and I'm a bit gutted that the vote was held
> on the user list with no heads-up here.
>
> Next time can you at least cc the other list on stuff like this?
>
> Thanks,
>
> Andrew.
> --
> [EMAIL PROTECTED] / [EMAIL PROTECTED]
> http://www.andrewsavory.com/
>


Sure Andrew, my bad :)

I've taken the poll down. I shall post statistics and results shortly.

-- 
Regards,
Shalin Shekhar Mangar.


Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Tomislav Poljak
Hi Ranjeet,
try this in your Spring config:



  http://solr_url:8080/

  

  

  





and inject it to you service like this:



  

  



and you have to have a setter in SomeService for the prop. server
(solrServer), off course.

Hope this helps,

Tomislav


2008/8/4 Ranjeet <[EMAIL PROTECTED]>

> Hi,
>
> I am using Solr 1.3 and Solrj as a Java Client. I am Integarating Solrj in
> Spring framwork, I am facing a problem, Spring framework is not inializing
> CommonsHttpSolrServer class, how can  I define this class to get the
> instance of SolrServer to invoke furthur method on this.
>
> Thanks & Regards,
> Ranjeet Jha


Re: Solr Logo thought

2008-08-04 Thread Lukáš Vlček
Hi,

Either I didn't get the BCc email or it ended in trash folder (gmail spam
filter?) without me noticing it.
If there is a still room for new log design for Solr and the community is
open for it then I can try to come up with some proposal. Doing logo for
Mahout was really interesting experience.

Just let me know what is the status.

Regards,
Lukas

On Mon, Aug 4, 2008 at 12:48 PM, Shalin Shekhar Mangar <
[EMAIL PROTECTED]> wrote:

> On Sun, Aug 3, 2008 at 4:51 PM, Andrew Savory <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > 2008/8/2 Koji Sekiguchi <[EMAIL PROTECTED]>:
> > >> Where is the second poll running?
> > >
> > > http://people.apache.org/~shalin/poll2.html
> 
> >
> > Ok. Whilst it's entirely my own fault for not monitoring both the
> > -user and the -dev list, I've been watching the dev list since the
> > issue first came up there, and I'm a bit gutted that the vote was held
> > on the user list with no heads-up here.
> >
> > Next time can you at least cc the other list on stuff like this?
> >
> > Thanks,
> >
> > Andrew.
> > --
> > [EMAIL PROTECTED] / [EMAIL PROTECTED]
> > http://www.andrewsavory.com/
> >
>
>
> Sure Andrew, my bad :)
>
> I've taken the poll down. I shall post statistics and results shortly.
>
> --
> Regards,
> Shalin Shekhar Mangar.
>



-- 
http://blog.lukas-vlcek.com/


RE: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Fuad Efendi
Use constructor and pass URL parameter. Nothing SPRING related... 

Create a Spring bean with attributes 'MySolr', 'MySolrUrl', and 'init'
method... 'init' will create instance of CommonsHttpSolrServer. Configure
Spring...



> I am using Solr 1.3 and Solrj as a Java Client. I am 
> Integarating Solrj in Spring framwork, I am facing a problem, 
> Spring framework is not inializing CommonsHttpSolrServer 
> class, how can  I define this class to get the instance of 
> SolrServer to invoke furthur method on this. 
> 



dismax and standard query types

2008-08-04 Thread Jae Joo
If there any way to mix dismax and standard query type?

Here is the example..

(wendys columbus) AND state:Georgia

wendys columbus --> qt=dismax

Thanks,

Jae Joo


Re: dismax and standard query types

2008-08-04 Thread Erik Hatcher


On Aug 4, 2008, at 11:47 AM, Jae Joo wrote:

If there any way to mix dismax and standard query type?

Here is the example..

(wendys columbus) AND state:Georgia

wendys columbus --> qt=dismax


One option is to use "wendys columbus" as the q parameter, and  
state:Georgia as a fq (filter query) parameter.


Erik



Re: dismax and standard query types

2008-08-04 Thread Smiley, David W. (DSMILEY)
I have done so with some hacking but Solr doesn't support this natively.  If
you did a mailing list search, you may of turned up this:

http://www.nabble.com/Standard-vs.-DisMaxQueryHandler-td6421205.html#a169458
50

I'm presently trying to get permission from my employer to release my
modifications to Solr.

~ David Smiley

On 8/4/08 11:47 AM, "Jae Joo" <[EMAIL PROTECTED]> wrote:

> If there any way to mix dismax and standard query type?
> 
> Here is the example..
> 
> (wendys columbus) AND state:Georgia
> 
> wendys columbus --> qt=dismax
> 
> Thanks,
> 
> Jae Joo



Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Ranjeet

Hi Tomislav,

I have user the same way that  you suggest, but I am worndering that its not 
working , exception is attached in this mail. pls suggest me what to do 
further.


Thanks & Regards,
Ranjeet


- Original Message - 
From: "Tomislav Poljak" <[EMAIL PROTECTED]>

To: 
Sent: Monday, August 04, 2008 4:31 PM
Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork



Hi Ranjeet,
try this in your Spring config:



 http://solr_url:8080/

 

 

 





and inject it to you service like this:



 

 



and you have to have a setter in SomeService for the prop. server
(solrServer), off course.

Hope this helps,

Tomislav


2008/8/4 Ranjeet <[EMAIL PROTECTED]>


Hi,

I am using Solr 1.3 and Solrj as a Java Client. I am Integarating Solrj 
in
Spring framwork, I am facing a problem, Spring framework is not 
inializing

CommonsHttpSolrServer class, how can  I define this class to get the
instance of SolrServer to invoke furthur method on this.

Thanks & Regards,
Ranjeet Jha



2008-08-04 21:32:25,125 ERROR org.springframework.web.context.ContextLoader - 
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.scheduling.quartz.SchedulerFactoryBean' defined 
in ServletContext resource [/WEB-INF/shared-tasks.xml]: Cannot resolve 
reference to bean 'solrDocumentCommitCronTrigger' while setting bean property 
'triggers' with key [1]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'solrDocumentCommitCronTrigger' defined in ServletContext resource 
[/WEB-INF/shared-tasks.xml]: Cannot resolve reference to bean 
'commitIndexDocumentJob' while setting bean property 'jobDetail'; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'commitIndexDocumentJob' defined in ServletContext 
resource [/WEB-INF/shared-tasks.xml]: Cannot resolve reference to bean 
'solrDocumentSchedulerTarget' while setting bean property 'targetObject'; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'solrDocumentSchedulerTarget' defined in 
ServletContext resource [/WEB-INF/shared-tasks.xml]: Cannot resolve reference 
to bean 'solrServer' while setting bean property 'solrServer'; nested exception 
is org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'solrServer' defined in ServletContext resource 
[/WEB-INF/shared-tasks.xml]: Instantiation of bean failed; nested exception is 
org.springframework.beans.FatalBeanException: Could not instantiate class 
[com.xonos.ecommerce.search.solr.util.SolrServerTest]; constructor threw 
exception; nested exception is java.lang.NoSuchMethodError: 
org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'solrDocumentCommitCronTrigger' defined in ServletContext resource 
[/WEB-INF/shared-tasks.xml]: Cannot resolve reference to bean 
'commitIndexDocumentJob' while setting bean property 'jobDetail'; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'commitIndexDocumentJob' defined in ServletContext 
resource [/WEB-INF/shared-tasks.xml]: Cannot resolve reference to bean 
'solrDocumentSchedulerTarget' while setting bean property 'targetObject'; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'solrDocumentSchedulerTarget' defined in 
ServletContext resource [/WEB-INF/shared-tasks.xml]: Cannot resolve reference 
to bean 'solrServer' while setting bean property 'solrServer'; nested exception 
is org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'solrServer' defined in ServletContext resource 
[/WEB-INF/shared-tasks.xml]: Instantiation of bean failed; nested exception is 
org.springframework.beans.FatalBeanException: Could not instantiate class 
[com.xonos.ecommerce.search.solr.util.SolrServerTest]; constructor threw 
exception; nested exception is java.lang.NoSuchMethodError: 
org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'commitIndexDocumentJob' defined in ServletContext resource 
[/WEB-INF/shared-tasks.xml]: Cannot resolve reference to bean 
'solrDocumentSchedulerTarget' while setting bean property 'targetObject'; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'solrDocumentSchedulerTarget' defined in 
ServletContext resource [/WEB-INF/shared-tasks.xml]: Cannot resolve reference 
to bean 'solrServer' while setting bean property 'solrServer'; nested exception 
is

Re: Solr Logo thought

2008-08-04 Thread Ryan McKinley


If there is a still room for new log design for Solr and the  
community is
open for it then I can try to come up with some proposal. Doing logo  
for

Mahout was really interesting experience.



In my opinion, yes  I'd love to see more effort put towards  the  
logo.  I have stayed out of this discussion since I don't really think  
any of the logos under consideration are complete.  (I begged some  
friends to do two of the three logos under consideration)  I would  
love to refine them, but time... oooh time.


ryan










Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Erik Hatcher
Looks to me like you have a conflict with the version of HttpClient in  
that exception, likely not using the same version that SolrJ requires.


Erik


On Aug 4, 2008, at 12:07 PM, Ranjeet wrote:


Hi Tomislav,

I have user the same way that  you suggest, but I am worndering that  
its not working , exception is attached in this mail. pls suggest me  
what to do further.


Thanks & Regards,
Ranjeet


- Original Message - From: "Tomislav Poljak" <[EMAIL PROTECTED] 
>

To: 
Sent: Monday, August 04, 2008 4:31 PM
Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork



Hi Ranjeet,
try this in your Spring config:



http://solr_url:8080/arg>












and inject it to you service like this:









and you have to have a setter in SomeService for the prop. server
(solrServer), off course.

Hope this helps,

Tomislav


2008/8/4 Ranjeet <[EMAIL PROTECTED]>


Hi,

I am using Solr 1.3 and Solrj as a Java Client. I am Integarating  
Solrj in
Spring framwork, I am facing a problem, Spring framework is not  
inializing

CommonsHttpSolrServer class, how can  I define this class to get the
instance of SolrServer to invoke furthur method on this.

Thanks & Regards,
Ranjeet Jha






diversity in results

2008-08-04 Thread Jason Rennie
Is there any option in solr to encourage diversity in the results?  Our solr
index has millions of products, many of which are quite similar to each
other.  Even something simple like max 50% text overlap in successive
results would be valuable.  Does something like this exist in solr or are
there any plans to add it?

Thanks,

Jason

-- 
Jason Rennie
Head of Machine Learning Technologies, StyleFeeder
http://www.stylefeeder.com/
Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/


Re: Initialising of CommonsHttpSolrServer in Spring framwork

2008-08-04 Thread Ranjeet

Hi,
I have downloaded "solr-2008-07-30" version of solr nightly, are you talking 
different version of HttpClient.



Thanks & Regards,
Ranjeet


- Original Message - 
From: "Erik Hatcher" <[EMAIL PROTECTED]>

To: 
Sent: Monday, August 04, 2008 10:05 PM
Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork


Looks to me like you have a conflict with the version of HttpClient in 
that exception, likely not using the same version that SolrJ requires.


Erik


On Aug 4, 2008, at 12:07 PM, Ranjeet wrote:


Hi Tomislav,

I have user the same way that  you suggest, but I am worndering that  its 
not working , exception is attached in this mail. pls suggest me  what to 
do further.


Thanks & Regards,
Ranjeet


- Original Message - From: "Tomislav Poljak" <[EMAIL PROTECTED]
>
To: 
Sent: Monday, August 04, 2008 4:31 PM
Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork



Hi Ranjeet,
try this in your Spring config:



http://solr_url:8080/











and inject it to you service like this:









and you have to have a setter in SomeService for the prop. server
(solrServer), off course.

Hope this helps,

Tomislav


2008/8/4 Ranjeet <[EMAIL PROTECTED]>


Hi,

I am using Solr 1.3 and Solrj as a Java Client. I am Integarating 
Solrj in
Spring framwork, I am facing a problem, Spring framework is not 
inializing

CommonsHttpSolrServer class, how can  I define this class to get the
instance of SolrServer to invoke furthur method on this.

Thanks & Regards,
Ranjeet Jha








Sum of one field

2008-08-04 Thread Leonardo Dias
Everyone exhibits "your search for x has returned y results" on the top 
of the results page, but we need something else, which would be 
something like "your search for x returned y results in z records", 
being z the numdocs of the SOLR response and y a SUM(quantity) of all 
returned records.


In SQL you can do something like:

SELECT count(1), sum(quantity) FROM table

But with SOLR we don't know how can we do the same without having to 
return all the XML result for the field "quantity" and then sum it to 
show the total. Any hints on how to do it in a better way?




cheers,

Leonardo


Solr tutorial

2008-08-04 Thread Vicky_Dev

Hi 

I am Newbie to Solr . I am looking for guide to build a Solr based search. I
was not able to find any book/reference manual on Solr which can help out in
building application around solr. 

Links mentioned "02 October 2007 - Solr at OSSummit Asia" on
http://lucene.apache.org/solr/ is not working

Kindly send links for tutorials around building application around Solr. I
am looking for reference manual like
..http://static.springframework.org/spring/docs/2.0.x/spring-reference.pdf 

Thanks in Advance

Vikrant


-- 
View this message in context: 
http://www.nabble.com/Solr-tutorial-tp18816315p18816315.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr tutorial

2008-08-04 Thread Erik Hatcher


On Aug 4, 2008, at 1:55 PM, Vicky_Dev wrote:
I am Newbie to Solr . I am looking for guide to build a Solr based  
search. I
was not able to find any book/reference manual on Solr which can  
help out in

building application around solr.

Links mentioned "02 October 2007 - Solr at OSSummit Asia" on
http://lucene.apache.org/solr/ is not working


OSSummit Asia did not materialize last year - it was "postponed", and  
may occur later this  year: .


There are several Lucene/Solr/Mahout related sessions at the upcoming  
ApacheCon US, so please consider attending this great conference.


Kindly send links for tutorials around building application around  
Solr.


The best tutorial is built right in: 


And you'll get your questions answered here when you run into any  
issues.



Erik



Re: UnicodeNormalizationFilterFactory

2008-08-04 Thread Otis Gospodnetic
Robert, does your code do something that IUC doesn't do?  See 
http://www.icu-project.org/


Thanks,
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



- Original Message 
> From: Robert Haschart <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Thursday, June 26, 2008 4:41:02 PM
> Subject: Re: UnicodeNormalizationFilterFactory
> 
> Lance Norskog wrote:
> 
> >ISOLatin1AccentFilterFactory works quite well for us. It solves our basic
> >euro-text keyboard searching problem, where "protege" should find protégé.
> >("protege" with two accents.)
> >
> >-Original Message-
> >From: Chris Hostetter [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 24, 2008 4:05 PM
> >To: solr-user@lucene.apache.org
> >Subject: Re: UnicodeNormalizationFilterFactory
> >
> >
> >: I've seen mention of these filters:
> >:
> >:  
> >:  
> >
> >Are you asking because you saw these in Robert Haschart's reply to your
> >previous question?  I think those are custom Filters that he has in his
> >project ... not open source (but i may be wrong)
> >
> >they are certainly not something that comes out of the box w/ Solr.
> >
> >
> >-Hoss
> >  
> >
> The ISOLatin1AccentFilter works well in the case above described by 
> Lance Norskog, ie. for words containing characters with accents where 
> the accented character is a single unicode character for the letter with 
> the accent mark as in protégé. However in the data that we work with, 
> often accented characters will be represented by a plain unaccented 
> character followed by the Unicode combining character for the accent 
> mark, roughly like this: prote'ge' which emerge from the 
> ISOLatin1AccentFilter unchanged.
> 
> After some research I found the UnicodeNormalizationFilter mentioned 
> above, which did not work on my development system (because it relies 
> features only available in java 6), and which when combined with the 
> DiacriticsFilter also mentioned above would remove diacritics from 
> characters, but also discard any Chinese characters or Russian 
> characters, or anything else outside the 0x0--0x7f range. Which is bad.
> 
> I first modified the filter to normalize the characters to the composed 
> normalized form, (changing prote'ge' to protégé) and then pass the 
> results through the ISOLatin1AccentFilter. However for accented 
> characters for which there is no composed normailzed form (such as the n 
> and s in Zarin̦š) the accents are not removed.
> 
> So I took the approach of decomposing the accented characters, and then 
> only removing the valid diacritics and zero-width composing characters 
> from the result, and the resulting filter works quite well. And since it 
> was developed as a part of the blacklight project at the University of 
> Virginia it is Open Source under the Apache License.
> 
> If anyone is interested in evaluating of using the 
> UnicodeNormalizationFilter in conjunction with their Solr installation 
> get the UnicodeNormalizeFilter.jar from:
> 
> http://blacklight.rubyforge.org/svn/trunk/solr/lib/
> 
> and place it in a lib directory next to the conf directory in your Solr 
> home directory.
> 
> Robert Haschart



Re: Solr tutorial

2008-08-04 Thread Vicky_Dev


Thanks Erik for quick response

Vikrant


Erik Hatcher wrote:
> 
> 
> On Aug 4, 2008, at 1:55 PM, Vicky_Dev wrote:
>> I am Newbie to Solr . I am looking for guide to build a Solr based  
>> search. I
>> was not able to find any book/reference manual on Solr which can  
>> help out in
>> building application around solr.
>>
>> Links mentioned "02 October 2007 - Solr at OSSummit Asia" on
>> http://lucene.apache.org/solr/ is not working
> 
> OSSummit Asia did not materialize last year - it was "postponed", and  
> may occur later this  year: .
> 
> There are several Lucene/Solr/Mahout related sessions at the upcoming  
> ApacheCon US, so please consider attending this great conference.
> 
>> Kindly send links for tutorials around building application around  
>> Solr.
> 
> The best tutorial is built right in:
>   >
> 
> And you'll get your questions answered here when you run into any  
> issues.
> 
> 
>   Erik
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Solr-tutorial-tp18816315p18817850.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Sum of one field

2008-08-04 Thread Otis Gospodnetic
Leonardo,
You'd have to read that "quantity" fields for all matching documents one way or 
the other.
One way is by getting all results and pulling that field out, so you can get 
the sum..
Another way is to hack the SolrIndexSearcher and get this value in one of the 
HitCollector collect method calls.
Another possibility, if your index is fairly static, might be to read it all 
documents' (not just matches') quantity field and store that in a 
docID->quantity map structure that lets you look up quantity for any docID you 
want.


There may be other/better ways of doing this, but this is what comes to (my) 
mind first.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



- Original Message 
> From: Leonardo Dias <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Monday, August 4, 2008 1:19:45 PM
> Subject: Sum of one field
> 
> Everyone exhibits "your search for x has returned y results" on the top 
> of the results page, but we need something else, which would be 
> something like "your search for x returned y results in z records", 
> being z the numdocs of the SOLR response and y a SUM(quantity) of all 
> returned records.
> 
> In SQL you can do something like:
> 
> SELECT count(1), sum(quantity) FROM table
> 
> But with SOLR we don't know how can we do the same without having to 
> return all the XML result for the field "quantity" and then sum it to 
> show the total. Any hints on how to do it in a better way?
> 
> 
> 
> cheers,
> 
> Leonardo



Re: diversity in results

2008-08-04 Thread Grant Ingersoll
See https://issues.apache.org/jira/browse/SOLR-236 and http://wiki.apache.org/solr/FieldCollapsing 
, but I gather it has been languishing.  I also don't think it will do  
anything as extensive as the text similarity question you are asking  
(50% overlap) but I have not tried it.


-Grant


On Aug 4, 2008, at 12:50 PM, Jason Rennie wrote:

Is there any option in solr to encourage diversity in the results?   
Our solr
index has millions of products, many of which are quite similar to  
each

other.  Even something simple like max 50% text overlap in successive
results would be valuable.  Does something like this exist in solr  
or are

there any plans to add it?

Thanks,

Jason

--
Jason Rennie
Head of Machine Learning Technologies, StyleFeeder
http://www.stylefeeder.com/
Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/





Re: diversity in results

2008-08-04 Thread Brian Whitman

On Aug 4, 2008, at 12:50 PM, Jason Rennie wrote:

Is there any option in solr to encourage diversity in the results?   
Our solr
index has millions of products, many of which are quite similar to  
each

other.  Even something simple like max 50% text overlap in successive
results would be valuable.  Does something like this exist in solr  
or are

there any plans to add it?



not out of the box, but I would use the mlt handler on the first  
result and remove all the ones that appear in both the MLT and query  
response.


B



Re: diversity in results

2008-08-04 Thread Jason Rennie
Thanks for the pointers.  Looks interesting, at least as a starting point
for something more sophisticated.

Cheers,

Jason

On Mon, Aug 4, 2008 at 4:38 PM, Grant Ingersoll <[EMAIL PROTECTED]> wrote:

> See https://issues.apache.org/jira/browse/SOLR-236 and
> http://wiki.apache.org/solr/FieldCollapsing, but I gather it has been
> languishing.  I also don't think it will do anything as extensive as the
> text similarity question you are asking (50% overlap) but I have not tried
> it.
>
> -Grant


Re: diversity in results

2008-08-04 Thread Jason Rennie
Does the MLT handler simply select a few high tfidf terms from the doc and
use them as a query?  Sounds like a useful tool.  Do you know anything about
relevant performance issues?  I noticed that the Solr MoreLikeThis wiki page
recommends turning on TermVectors for corresponding fields.  Can lucene not
easily return term counts for a document with the standard indexing b/c it's
term-based (i.e. "inverted").  Does TermVectors=true cause solr/lucene to
store an additional doc-based index?

Thanks,

Jason

On Mon, Aug 4, 2008 at 5:06 PM, Brian Whitman <[EMAIL PROTECTED]>wrote:

> not out of the box, but I would use the mlt handler on the first result and
> remove all the ones that appear in both the MLT and query response.
>
> B
>
>
-- 
Jason Rennie
Head of Machine Learning Technologies, StyleFeeder
http://www.stylefeeder.com/
Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/


Re: diversity in results

2008-08-04 Thread Otis Gospodnetic
Hi Jason,


Yes, TV will store additional data in the index.  Using fields with TV=true 
will simply get to the seminal terms more easily.  Yes, in the end the terms 
are used to perform a normal query and get the most similar docs.  This is 
based on my use of MLT a whiiile back, but I don't think things changed 
that much in the last few years.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



- Original Message 
> From: Jason Rennie <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Monday, August 4, 2008 6:17:28 PM
> Subject: Re: diversity in results
> 
> Does the MLT handler simply select a few high tfidf terms from the doc and
> use them as a query?  Sounds like a useful tool.  Do you know anything about
> relevant performance issues?  I noticed that the Solr MoreLikeThis wiki page
> recommends turning on TermVectors for corresponding fields.  Can lucene not
> easily return term counts for a document with the standard indexing b/c it's
> term-based (i.e. "inverted").  Does TermVectors=true cause solr/lucene to
> store an additional doc-based index?
> 
> Thanks,
> 
> Jason
> 
> On Mon, Aug 4, 2008 at 5:06 PM, Brian Whitman wrote:
> 
> > not out of the box, but I would use the mlt handler on the first result and
> > remove all the ones that appear in both the MLT and query response.
> >
> > B
> >
> >
> -- 
> Jason Rennie
> Head of Machine Learning Technologies, StyleFeeder
> http://www.stylefeeder.com/
> Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/



Re: diversity in results

2008-08-04 Thread Grant Ingersoll


On Aug 4, 2008, at 6:17 PM, Jason Rennie wrote:

Does the MLT handler simply select a few high tfidf terms from the  
doc and
use them as a query?  Sounds like a useful tool.  Do you know  
anything about
relevant performance issues?  I noticed that the Solr MoreLikeThis  
wiki page
recommends turning on TermVectors for corresponding fields.  Can  
lucene not
easily return term counts for a document with the standard indexing  
b/c it's

term-based (i.e. "inverted").


Correct.


Does TermVectors=true cause solr/lucene to
store an additional doc-based index?


Yes, that is correct


Re: Sum of one field

2008-08-04 Thread Norberto Meijome
On Mon, 04 Aug 2008 14:19:45 -0300
Leonardo Dias <[EMAIL PROTECTED]> wrote:

> Everyone exhibits "your search for x has returned y results" on the top 
> of the results page, but we need something else, which would be 
> something like "your search for x returned y results in z records", 
> being z the numdocs of the SOLR response and y a SUM(quantity) of all 
> returned records.

if 'y" doesn't have to be extremely precise, you could query say, 50 records,
get the y out of this and extrapolate. You may end up with 'your search for x
returned aproximately y results in z records'. You could keep that information
(the approximate value of y)  in some cached object outside of SOLR and reuse
it for popular searches.

I say 50 records, but maybe you can get a good approximation with 10 only.

B
_
{Beto|Norberto|Numard} Meijome

"Caminante no hay camino, se hace camino al andar"
   Antonio Machado

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


Re: Solr Logo thought

2008-08-04 Thread Norberto Meijome
On Mon, 4 Aug 2008 09:29:30 -0700
Ryan McKinley <[EMAIL PROTECTED]> wrote:

> >
> > If there is a still room for new log design for Solr and the  
> > community is
> > open for it then I can try to come up with some proposal. Doing logo  
> > for
> > Mahout was really interesting experience.
> >
> 
> In my opinion, yes  I'd love to see more effort put towards  the  
> logo.  I have stayed out of this discussion since I don't really think  
> any of the logos under consideration are complete.  (I begged some  
> friends to do two of the three logos under consideration)  I would  
> love to refine them, but time... oooh time.

+1 

If we are going to change what we have, i'd love to see some more options , or
better quality - no offence meant , but those "logos" aren't really a huge
improvement or departure from the current one. 

I think whatever we change to we'll be wanting to use it for a long time.

B
_
{Beto|Norberto|Numard} Meijome

If you find a solution and become attached to it, the solution may become your
next problem.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


solr 1.3 ??

2008-08-04 Thread Vicky_Dev

Hi

Any ideas on when 1.3 might be released? 

In solr 1.3, there are really good features like--DataImportHandler which I
want to use in my project. Trunk folder is changing regularly. 

Can we get solr 1.3 release as soon as possible? Otherwise some interim
release (1.2.x) containing DataImportHandler will also a good option. 

Any Thoughts?

~Vikrant

-- 
View this message in context: 
http://www.nabble.com/solr-1.3tp18824290p18824290.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: solr 1.3 ??

2008-08-04 Thread Norberto Meijome
On Mon, 4 Aug 2008 21:13:09 -0700 (PDT)
Vicky_Dev <[EMAIL PROTECTED]> wrote:

> Can we get solr 1.3 release as soon as possible? Otherwise some interim
> release (1.2.x) containing DataImportHandler will also a good option. 
> 
> Any Thoughts?


have you tried one of the nightly builds? I've been following it every so
often...sometimes there is a problem, but hardly ever... you can find a build
you are comfortable with, and it'll be far closer to the actual 1.3 when
released than 1.2 .

B

_
{Beto|Norberto|Numard} Meijome

Quantum Logic Chicken:
  The chicken is distributed probabalistically on all sides of the
  road until you observe it on the side of your course.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.