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 Jo...@blum.com on 2012/08/31 07:05:41 UTC
Query during a query
Hi list,
I want to get distinct data from a single solr field when ever a search
query is started by an user.
How can I do this?
Regards,
Johannes
Re: Antwort: Re: Antwort: Re: Query during a query
Posted by Erick Erickson <er...@gmail.com>.
If you don't do what Chantal indicates, you allow your users to issue
requests like:
http://localhost:8983/solr/update?stream.body=<delete><query>*:*</query></delete>
Followed by:
http://localhost:8983/solr/update?stream.body=<commit/>
Presto! You have an index with zero documents.....
Best
Erick
On Mon, Sep 3, 2012 at 4:52 AM, Chantal Ackermann
<c....@it-agenten.com> wrote:
> Hi Johannes,
>
> on production, SOLR is better a backend service to your actual web application:
>
> Client (Browser) <---> Web App <---> Solr Server
>
> Very much like a database. The processes are implemented in your Web App, and when they require results from Solr for whatever reason they simply query it.
>
> Chantal
>
>
>
>
> Am 03.09.2012 um 06:48 schrieb Johannes.Schwendinger@blum.com:
>
>> The problem is, that I don't know how to do this. :P
>>
>> My sequence: the user enters his search words. This is sent to solr. There
>> I need to make another query first to get metadata from the index. with
>> this metadata I have to connect to an external source to get some
>> information about the user. With this information and the first search
>> words I query then the solr index to get the search result.
>>
>> I hope its clear now wheres my problem and what I want to do
>>
>> Regards,
>> Johannes
>>
>>
>>
>> Von:
>> "Jack Krupansky" <ja...@basetechnology.com>
>> An:
>> <so...@lucene.apache.org>
>> Datum:
>> 31.08.2012 15:03
>> Betreff:
>> Re: Antwort: Re: Query during a query
>>
>>
>>
>> So, just do another query before doing the main query. What's the problem?
>>
>> Be more specific. Walk us through the sequence of processing that you
>> need.
>>
>> -- Jack Krupansky
>>
>> -----Original Message-----
>> From: Johannes.Schwendinger@blum.com
>> Sent: Friday, August 31, 2012 1:52 AM
>> To: solr-user@lucene.apache.org
>> Subject: Antwort: Re: Query during a query
>>
>> Thanks for the answer, but I want to know how I can do a seperate query
>> before the main query.
>> And I only want this data in my programm. The user won't see it.
>> I need the values from one field to get some information from an external
>> source while the main query is executed.
>>
>> pravesh <su...@yahoo.com> schrieb am 31.08.2012 07:42:48:
>>
>>> Von:
>>>
>>> pravesh <su...@yahoo.com>
>>>
>>> An:
>>>
>>> solr-user@lucene.apache.org
>>>
>>> Datum:
>>>
>>> 31.08.2012 07:43
>>>
>>> Betreff:
>>>
>>> Re: Query during a query
>>>
>>> Did you checked SOLR Field Collapsing/Grouping.
>>> http://wiki.apache.org/solr/FieldCollapsing
>>> http://wiki.apache.org/solr/FieldCollapsing
>>> If this is what you are looking for.
>>>
>>>
>>> Thanx
>>> Pravesh
>>>
>>>
>>>
>>> --
>>> View this message in context: http://lucene.472066.n3.nabble.com/
>>> Query-during-a-query-tp4004624p4004631.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>
Re: Antwort: Re: Antwort: Re: Query during a query
Posted by Chantal Ackermann <c....@it-agenten.com>.
Hi Johannes,
on production, SOLR is better a backend service to your actual web application:
Client (Browser) <---> Web App <---> Solr Server
Very much like a database. The processes are implemented in your Web App, and when they require results from Solr for whatever reason they simply query it.
Chantal
Am 03.09.2012 um 06:48 schrieb Johannes.Schwendinger@blum.com:
> The problem is, that I don't know how to do this. :P
>
> My sequence: the user enters his search words. This is sent to solr. There
> I need to make another query first to get metadata from the index. with
> this metadata I have to connect to an external source to get some
> information about the user. With this information and the first search
> words I query then the solr index to get the search result.
>
> I hope its clear now wheres my problem and what I want to do
>
> Regards,
> Johannes
>
>
>
> Von:
> "Jack Krupansky" <ja...@basetechnology.com>
> An:
> <so...@lucene.apache.org>
> Datum:
> 31.08.2012 15:03
> Betreff:
> Re: Antwort: Re: Query during a query
>
>
>
> So, just do another query before doing the main query. What's the problem?
>
> Be more specific. Walk us through the sequence of processing that you
> need.
>
> -- Jack Krupansky
>
> -----Original Message-----
> From: Johannes.Schwendinger@blum.com
> Sent: Friday, August 31, 2012 1:52 AM
> To: solr-user@lucene.apache.org
> Subject: Antwort: Re: Query during a query
>
> Thanks for the answer, but I want to know how I can do a seperate query
> before the main query.
> And I only want this data in my programm. The user won't see it.
> I need the values from one field to get some information from an external
> source while the main query is executed.
>
> pravesh <su...@yahoo.com> schrieb am 31.08.2012 07:42:48:
>
>> Von:
>>
>> pravesh <su...@yahoo.com>
>>
>> An:
>>
>> solr-user@lucene.apache.org
>>
>> Datum:
>>
>> 31.08.2012 07:43
>>
>> Betreff:
>>
>> Re: Query during a query
>>
>> Did you checked SOLR Field Collapsing/Grouping.
>> http://wiki.apache.org/solr/FieldCollapsing
>> http://wiki.apache.org/solr/FieldCollapsing
>> If this is what you are looking for.
>>
>>
>> Thanx
>> Pravesh
>>
>>
>>
>> --
>> View this message in context: http://lucene.472066.n3.nabble.com/
>> Query-during-a-query-tp4004624p4004631.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
Antwort: Re: Antwort: Re: Query during a query
Posted by Jo...@blum.com.
The problem is, that I don't know how to do this. :P
My sequence: the user enters his search words. This is sent to solr. There
I need to make another query first to get metadata from the index. with
this metadata I have to connect to an external source to get some
information about the user. With this information and the first search
words I query then the solr index to get the search result.
I hope its clear now wheres my problem and what I want to do
Regards,
Johannes
Von:
"Jack Krupansky" <ja...@basetechnology.com>
An:
<so...@lucene.apache.org>
Datum:
31.08.2012 15:03
Betreff:
Re: Antwort: Re: Query during a query
So, just do another query before doing the main query. What's the problem?
Be more specific. Walk us through the sequence of processing that you
need.
-- Jack Krupansky
-----Original Message-----
From: Johannes.Schwendinger@blum.com
Sent: Friday, August 31, 2012 1:52 AM
To: solr-user@lucene.apache.org
Subject: Antwort: Re: Query during a query
Thanks for the answer, but I want to know how I can do a seperate query
before the main query.
And I only want this data in my programm. The user won't see it.
I need the values from one field to get some information from an external
source while the main query is executed.
pravesh <su...@yahoo.com> schrieb am 31.08.2012 07:42:48:
> Von:
>
> pravesh <su...@yahoo.com>
>
> An:
>
> solr-user@lucene.apache.org
>
> Datum:
>
> 31.08.2012 07:43
>
> Betreff:
>
> Re: Query during a query
>
> Did you checked SOLR Field Collapsing/Grouping.
> http://wiki.apache.org/solr/FieldCollapsing
> http://wiki.apache.org/solr/FieldCollapsing
> If this is what you are looking for.
>
>
> Thanx
> Pravesh
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/
> Query-during-a-query-tp4004624p4004631.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Antwort: Re: Query during a query
Posted by Jack Krupansky <ja...@basetechnology.com>.
So, just do another query before doing the main query. What's the problem?
Be more specific. Walk us through the sequence of processing that you need.
-- Jack Krupansky
-----Original Message-----
From: Johannes.Schwendinger@blum.com
Sent: Friday, August 31, 2012 1:52 AM
To: solr-user@lucene.apache.org
Subject: Antwort: Re: Query during a query
Thanks for the answer, but I want to know how I can do a seperate query
before the main query.
And I only want this data in my programm. The user won't see it.
I need the values from one field to get some information from an external
source while the main query is executed.
pravesh <su...@yahoo.com> schrieb am 31.08.2012 07:42:48:
> Von:
>
> pravesh <su...@yahoo.com>
>
> An:
>
> solr-user@lucene.apache.org
>
> Datum:
>
> 31.08.2012 07:43
>
> Betreff:
>
> Re: Query during a query
>
> Did you checked SOLR Field Collapsing/Grouping.
> http://wiki.apache.org/solr/FieldCollapsing
> http://wiki.apache.org/solr/FieldCollapsing
> If this is what you are looking for.
>
>
> Thanx
> Pravesh
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/
> Query-during-a-query-tp4004624p4004631.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Antwort: Re: Query during a query
Posted by Jo...@blum.com.
Thanks for the answer, but I want to know how I can do a seperate query
before the main query.
And I only want this data in my programm. The user won't see it.
I need the values from one field to get some information from an external
source while the main query is executed.
pravesh <su...@yahoo.com> schrieb am 31.08.2012 07:42:48:
> Von:
>
> pravesh <su...@yahoo.com>
>
> An:
>
> solr-user@lucene.apache.org
>
> Datum:
>
> 31.08.2012 07:43
>
> Betreff:
>
> Re: Query during a query
>
> Did you checked SOLR Field Collapsing/Grouping.
> http://wiki.apache.org/solr/FieldCollapsing
> http://wiki.apache.org/solr/FieldCollapsing
> If this is what you are looking for.
>
>
> Thanx
> Pravesh
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/
> Query-during-a-query-tp4004624p4004631.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Query during a query
Posted by pravesh <su...@yahoo.com>.
Did you checked SOLR Field Collapsing/Grouping.
http://wiki.apache.org/solr/FieldCollapsing
http://wiki.apache.org/solr/FieldCollapsing
If this is what you are looking for.
Thanx
Pravesh
--
View this message in context: http://lucene.472066.n3.nabble.com/Query-during-a-query-tp4004624p4004631.html
Sent from the Solr - User mailing list archive at Nabble.com.