Re: Sum of Fields and Record Count

2008-12-11 Thread John Martyniak

Hi Otis,

Thanks for the info and help.  I started reading up about it (on  
Markmail, nice site), and it looks like there is some activity to put  
it into 1.4.  I will try and apply the patch, and see how that works.   
It seems like a couple of people are using it in a production  
environment already, with out grief.  So that is a good thing.


-John

On Dec 11, 2008, at 1:24 AM, Otis Gospodnetic wrote:


Hi John,

It's not in the current release, but the chances are it will make it  
into 1.4.  You can try one of the recent patches and apply it to  
your Solr 1.3 sources.  Check list archives for more discussion,  
this field collapsing was just discussed again today/yesterday.   
markmail.org is a good one.



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



- Original Message 

From: John Martyniak [EMAIL PROTECTED]
To: solr-user@lucene.apache.org
Sent: Wednesday, December 10, 2008 10:51:57 PM
Subject: Re: Sum of Fields and Record Count

Otis,

Thanks for the information.  It looks like the field collapsing is  
similar to
what I am looking.  But is that in the current release?  Is it  
stable?


Is there anyway to do it in Solr 1.3?

-John

On Dec 10, 2008, at 9:59 PM, Otis Gospodnetic wrote:


Hi John,

This sounds a lot like field collapsing functionality that a few  
people are

working on in SOLR-236:


https://issues.apache.org/jira/browse/SOLR-236

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



- Original Message 

From: John Martyniak
To: solr-user@lucene.apache.org
Sent: Wednesday, December 10, 2008 6:16:21 PM
Subject: Sum of Fields and Record Count

Hi,

I am a new solr user.

I have an application that I would like to show the results but  
one result

may
be the part of larger set of results.  So for example result #1  
might also

have

10 other results that are part of the same data set.

Hopefully this makes sense.

What I would like to find out is if there is a way within Solr to  
show the
result that matched with the query, and then to also show that  
this result is

part of a collection of 10 items.

I have thought about doing it using some sort of external process  
that runs,

and
with doing multiple queries, so get the list of items and then  
query against

each item.  But those don't seem elegant.

So I would like to find out if there is a way to do it within  
Solr that is a
little more elegant, and hopefully without having to write  
additional code.


Thank you in advance for the help.

-John








Re: Sum of Fields and Record Count

2008-12-10 Thread Grant Ingersoll

Hi John,

What is your process for determining that #1 is part of the other  
result set?  My gut says this is a faceting problem, i.e. #1 has a  
field contain its category that is also shared by the 10 other  
results, and that all you need to do is facet on the category field.


The other thing that comes to mind is More Like This: 
http://wiki.apache.org/solr/MoreLikeThis

-Grant

On Dec 10, 2008, at 6:16 PM, John Martyniak wrote:


Hi,

I am a new solr user.

I have an application that I would like to show the results but one  
result may be the part of larger set of results.  So for example  
result #1 might also have 10 other results that are part of the same  
data set.


Hopefully this makes sense.

What I would like to find out is if there is a way within Solr to  
show the result that matched with the query, and then to also show  
that this result is part of a collection of 10 items.


I have thought about doing it using some sort of external process  
that runs, and with doing multiple queries, so get the list of items  
and then query against each item.  But those don't seem elegant.


So I would like to find out if there is a way to do it within Solr  
that is a little more elegant, and hopefully without having to write  
additional code.


Thank you in advance for the help.

-John




--
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ












Re: Sum of Fields and Record Count

2008-12-10 Thread John Martyniak

Grant,

Basically I have created a text field that has the grouping value.   
All of the records would have the same value in this text field.  This  
is accomplished with some pre-processing. When I capture the data, but  
before it is submitted into the index.



-John

On Dec 10, 2008, at 8:46 PM, Grant Ingersoll [EMAIL PROTECTED]  
wrote:



Hi John,

What is your process for determining that #1 is part of the other  
result set?  My gut says this is a faceting problem, i.e. #1 has a  
field contain its category that is also shared by the 10 other  
results, and that all you need to do is facet on the category field.


The other thing that comes to mind is More Like This: 
http://wiki.apache.org/solr/MoreLikeThis

-Grant

On Dec 10, 2008, at 6:16 PM, John Martyniak wrote:


Hi,

I am a new solr user.

I have an application that I would like to show the results but one  
result may be the part of larger set of results.  So for example  
result #1 might also have 10 other results that are part of the  
same data set.


Hopefully this makes sense.

What I would like to find out is if there is a way within Solr to  
show the result that matched with the query, and then to also show  
that this result is part of a collection of 10 items.


I have thought about doing it using some sort of external process  
that runs, and with doing multiple queries, so get the list of  
items and then query against each item.  But those don't seem  
elegant.


So I would like to find out if there is a way to do it within Solr  
that is a little more elegant, and hopefully without having to  
write additional code.


Thank you in advance for the help.

-John




--
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ












Re: Sum of Fields and Record Count

2008-12-10 Thread John Martyniak

Grant,

For the more like this that would show the grouped results, once you  
have clicked on the item, so basically making another query,  would it  
show a count of the more like this results?


Something like cxxc and a collection 10 other items.

-John

On Dec 10, 2008, at 8:46 PM, Grant Ingersoll [EMAIL PROTECTED]  
wrote:



Hi John,

What is your process for determining that #1 is part of the other  
result set? My gut says this is a faceting problem, i.e. #1 has a  
field contain its category that is also shared by the 10 other  
results, and that all you need to do is facet on the category field.


The other thing that comes to mind is More Like This: 
http://wiki.apache.org/solr/MoreLikeThis

-Grant

On Dec 10, 2008, at 6:16 PM, John Martyniak wrote:


Hi,

I am a new solr user.

I have an application that I would like to show the results but one  
result may be the part of larger set of results.  So for example  
result #1 might also have 10 other results that are part of the  
same data set.


Hopefully this makes sense.

What I would like to find out is if there is a way within Solr to  
show the result that matched with the query, and then to also show  
that this result is part of a collection of 10 items.


I have thought about doing it using some sort of external process  
that runs, and with doing multiple queries, so get the list of  
items and then query against each item.  But those don't seem  
elegant.


So I would like to find out if there is a way to do it within Solr  
that is a little more elegant, and hopefully without having to  
write additional code.


Thank you in advance for the help.

-John




--
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ












Re: Sum of Fields and Record Count

2008-12-10 Thread Otis Gospodnetic
Hi John,

This sounds a lot like field collapsing functionality that a few people are 
working on in SOLR-236:

https://issues.apache.org/jira/browse/SOLR-236

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



- Original Message 
 From: John Martyniak [EMAIL PROTECTED]
 To: solr-user@lucene.apache.org
 Sent: Wednesday, December 10, 2008 6:16:21 PM
 Subject: Sum of Fields and Record Count
 
 Hi,
 
 I am a new solr user.
 
 I have an application that I would like to show the results but one result 
 may 
 be the part of larger set of results.  So for example result #1 might also 
 have 
 10 other results that are part of the same data set.
 
 Hopefully this makes sense.
 
 What I would like to find out is if there is a way within Solr to show the 
 result that matched with the query, and then to also show that this result is 
 part of a collection of 10 items.
 
 I have thought about doing it using some sort of external process that runs, 
 and 
 with doing multiple queries, so get the list of items and then query against 
 each item.  But those don't seem elegant.
 
 So I would like to find out if there is a way to do it within Solr that is a 
 little more elegant, and hopefully without having to write additional code.
 
 Thank you in advance for the help.
 
 -John



Re: Sum of Fields and Record Count

2008-12-10 Thread John Martyniak

Otis,

Thanks for the information.  It looks like the field collapsing is  
similar to what I am looking.  But is that in the current release?  Is  
it stable?


Is there anyway to do it in Solr 1.3?

-John

On Dec 10, 2008, at 9:59 PM, Otis Gospodnetic wrote:


Hi John,

This sounds a lot like field collapsing functionality that a few  
people are working on in SOLR-236:


https://issues.apache.org/jira/browse/SOLR-236

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



- Original Message 

From: John Martyniak [EMAIL PROTECTED]
To: solr-user@lucene.apache.org
Sent: Wednesday, December 10, 2008 6:16:21 PM
Subject: Sum of Fields and Record Count

Hi,

I am a new solr user.

I have an application that I would like to show the results but one  
result may
be the part of larger set of results.  So for example result #1  
might also have

10 other results that are part of the same data set.

Hopefully this makes sense.

What I would like to find out is if there is a way within Solr to  
show the
result that matched with the query, and then to also show that this  
result is

part of a collection of 10 items.

I have thought about doing it using some sort of external process  
that runs, and
with doing multiple queries, so get the list of items and then  
query against

each item.  But those don't seem elegant.

So I would like to find out if there is a way to do it within Solr  
that is a
little more elegant, and hopefully without having to write  
additional code.


Thank you in advance for the help.

-John






Re: Sum of Fields and Record Count

2008-12-10 Thread Otis Gospodnetic
Hi John,

It's not in the current release, but the chances are it will make it into 1.4.  
You can try one of the recent patches and apply it to your Solr 1.3 sources.  
Check list archives for more discussion, this field collapsing was just 
discussed again today/yesterday.  markmail.org is a good one.


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



- Original Message 
 From: John Martyniak [EMAIL PROTECTED]
 To: solr-user@lucene.apache.org
 Sent: Wednesday, December 10, 2008 10:51:57 PM
 Subject: Re: Sum of Fields and Record Count
 
 Otis,
 
 Thanks for the information.  It looks like the field collapsing is similar to 
 what I am looking.  But is that in the current release?  Is it stable?
 
 Is there anyway to do it in Solr 1.3?
 
 -John
 
 On Dec 10, 2008, at 9:59 PM, Otis Gospodnetic wrote:
 
  Hi John,
  
  This sounds a lot like field collapsing functionality that a few people are 
 working on in SOLR-236:
  
  https://issues.apache.org/jira/browse/SOLR-236
  
  Otis
  --
  Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
  
  
  
  - Original Message 
  From: John Martyniak 
  To: solr-user@lucene.apache.org
  Sent: Wednesday, December 10, 2008 6:16:21 PM
  Subject: Sum of Fields and Record Count
  
  Hi,
  
  I am a new solr user.
  
  I have an application that I would like to show the results but one result 
 may
  be the part of larger set of results.  So for example result #1 might also 
 have
  10 other results that are part of the same data set.
  
  Hopefully this makes sense.
  
  What I would like to find out is if there is a way within Solr to show the
  result that matched with the query, and then to also show that this result 
  is
  part of a collection of 10 items.
  
  I have thought about doing it using some sort of external process that 
  runs, 
 and
  with doing multiple queries, so get the list of items and then query 
  against
  each item.  But those don't seem elegant.
  
  So I would like to find out if there is a way to do it within Solr that is 
  a
  little more elegant, and hopefully without having to write additional code.
  
  Thank you in advance for the help.
  
  -John