Re: Multiple Queries per request

2018-10-02 Thread Walter Underwood
Have a middle tier that does all the queries and returns combined results. Or do all the queries simultaneously, like AJAX. I think it is still true with SolrJ that async, parallel queries to Solr are easy. Send each request, but don’t read the response. When you are done sending requests, star

Re: Multiple Queries per request

2018-10-02 Thread David Hastings
perhaps you could do an OR query with the two requirements, and sort by an identifier that makes each result set unique from the other On Tue, Oct 2, 2018 at 11:05 AM Greenhorn Techie wrote: > Shamik, > > Wondering how to get this working? As I mentioned, my data is different for > each of the w

Re: Multiple Queries per request

2018-10-02 Thread Greenhorn Techie
Shamik, Wondering how to get this working? As I mentioned, my data is different for each of the wizards. So not sure how to "return all the necessary data at one shot and group them” Any particular inputs? Thanks On 2 October 2018 at 15:47:50, Shamik Sinha (shamikchand...@gmail.com) wrote: Th

Re: Multiple Queries per request

2018-10-02 Thread Shamik Sinha
The Solr uses REST based calls which is done over http or https which cannot handle multiple requests at one shot. However what you can do is return all the necessary data at one shot and group them according to your needs. Thanks and regards, Shamik On 02-Oct-2018 8:11 PM, "Greenhorn Techie" wr

Re: Multiple Queries per request

2018-10-02 Thread Alexandre Rafalovitch
You should not be exposing Solr publicly to the production client unless you really, really know how to do security hardening. Normally, treat it more like a database. So, most of the cases, you would have an actual server app that talks to Solr behind the scenes. That gives you more flexibility t

Multiple Queries per request

2018-10-02 Thread Greenhorn Techie
Hi, We are building a mobile app which would display results from Solr. At the moment, the idea is to have multiple widgets / areas on the mobile screen, with each area being served by a distinct Solr query. For example first widget would be display customer’s aggregated product usage, second widg

Multiple Queries using spark and solr

2017-03-25 Thread Matt Magnusson
Hello: I'm interested in querying solr as a spark rdd. Has anyone used the lucidworks code api https://github.com/lucidworks/spark-solr to issue multiple queries? I'd like to have it execute multiple queries and have the top n results be combined into one spark rdd for further anal

Re: run multiple queries at the same time

2014-07-10 Thread Alexandre Rafalovitch
lel ? > > I am not good at JAVA, is there any why to do that with built in solr > component ? > > Thanks, > Chunki. > > > On Jul 10, 2014, at 11:53 PM, Jack Krupansky wrote: > >> How is "running multiple queries at the same time" different from runnin

Re: run multiple queries at the same time

2014-07-10 Thread Lee Chunki
Krupansky wrote: > How is "running multiple queries at the same time" different from running > them in parallel? So, why not just run them in parallel. I mean, Solr can > accept simultaneous query requests just fine, so what's the issue here? > > IOW, put the logic in

Re: run multiple queries at the same time

2014-07-10 Thread Jack Krupansky
How is "running multiple queries at the same time" different from running them in parallel? So, why not just run them in parallel. I mean, Solr can accept simultaneous query requests just fine, so what's the issue here? IOW, put the logic in your application layer and use SOlr a

run multiple queries at the same time

2014-07-09 Thread Lee Chunki
Hi, Is there any way to run multiple queries at the same time? situation is 1. when query in 2. check synonyms 3. get search results for all synonym queries and original query even if, I can get search results by looping searcher but, as you know, it is time consuming. Thanks, Chunki.

RE: multiple queries in single request

2014-05-25 Thread Pavel Belenkovich
solr-user@lucene.apache.org Subject: Re: multiple queries in single request No, I was rejecting BOTH methods 1 and 2. I was suggesting a different method. I'll leave it to somebody else to describe the method so that it is easier to understand. -- Jack Krupansky -Original Message- From: Pavel B

Re: multiple queries in single request

2014-05-22 Thread Jack Krupansky
-user@lucene.apache.org Subject: RE: multiple queries in single request Hi Jack! Thanx for the response! So you say that using method 2 below (single request with ORs and sorting results in client) is better than method 1 (separate requests)? regards, Pavel. -Original Message- From:

RE: multiple queries in single request

2014-05-22 Thread Pavel Belenkovich
Great, thanx Mikhail, I"ll try that out. regards, Pavel. -Original Message- From: Mikhail Khludnev [mailto:mkhlud...@griddynamics.com] Sent: Thursday, May 22, 2014 11:49 To: solr-user Subject: Re: multiple queries in single request Pavel, I suppose the benchmark matters, a

Re: multiple queries in single request

2014-05-22 Thread Mikhail Khludnev
eparate requests)? > > regards, > Pavel. > > > -Original Message- > From: Jack Krupansky [mailto:j...@basetechnology.com] > Sent: Thursday, May 22, 2014 01:26 > To: solr-user@lucene.apache.org > Subject: Re: multiple queries in single request > > Nothing special for

RE: multiple queries in single request

2014-05-22 Thread Pavel Belenkovich
, 2014 01:26 To: solr-user@lucene.apache.org Subject: Re: multiple queries in single request Nothing special for this use case. This seems to be a use case that I would call "bulk data retrieval - based on ID". I would suggest "batching" your requests - limit each request quer

Re: multiple queries in single request

2014-05-21 Thread Jack Krupansky
el Belenkovich Sent: Wednesday, May 21, 2014 1:07 PM To: solr-user@lucene.apache.org Subject: multiple queries in single request Hi, I have list of 1000 values for some field which is sort of id (essentially unique between documents) (let's say firstname_lastmane). I need to get the document f

multiple queries in single request

2014-05-21 Thread Pavel Belenkovich
Hi, I have list of 1000 values for some field which is sort of id (essentially unique between documents) (let's say firstname_lastmane). I need to get the document for each id (to know which document is for which id, not just list of responses). Is there some support for multiple queri

Re: Can i execute multiple queries to populate my fields?

2013-07-24 Thread Erick Erickson
ry to populate > another fields. Can i do it? > > Thanks in advance. > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Can-i-execute-multiple-queries-to-populate-my-fields-tp4080072.html > Sent from the Solr - User mailing list archive at Nabble.com.

Can i execute multiple queries to populate my fields?

2013-07-24 Thread padcoe
execute a secondary query to populate another fields. Can i do it? Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/Can-i-execute-multiple-queries-to-populate-my-fields-tp4080072.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple queries or Filtering Queries in Solr

2013-07-14 Thread Erick Erickson
s1=f(query1) > results2=f(query2, results1) > final_results=f(query3, results2) > > I would like this to be accomplish using a program and end-user will only > see 50 results. So faceting is not an option. > > > > > -- > View this message in context: > http

Multiple queries or Filtering Queries in Solr

2013-07-12 Thread dcode
sults1) final_results=f(query3, results2) I would like this to be accomplish using a program and end-user will only see 50 results. So faceting is not an option. -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-queries-or-Filtering-Queries-in-Solr-tp4077574.html Sen

RE: solr-dih does multiple queries for sub-entities

2013-03-04 Thread harpax
ml'", "query", " SELECT id, b FROM a_table WHERE id = 'report-1358168401817.xml'", "query", " SELECT id, b FROM a_table WHERE id = 'report-1358168401817.xml'", "time-taken", "0:0:0.297", "time-taken", "0:0:0.297", "time-taken", "0:0:0.297", "time-taken", "0:0:0.297", null, "--- row #1-", "ID", "report-1358168401817.xml", "B", "some data", "-", null, ] ], -- View this message in context: http://lucene.472066.n3.nabble.com/solr-dih-does-multiple-queries-for-sub-entities-tp4044522p4044552.html Sent from the Solr - User mailing list archive at Nabble.com.

RE: solr-dih does multiple queries for sub-entities

2013-03-04 Thread Dyer, James
[mailto:a.psczo...@pan-sonic.de] Sent: Monday, March 04, 2013 8:49 AM To: solr-user@lucene.apache.org Subject: solr-dih does multiple queries for sub-entities Hi, I am trying to use the DIH for crawling over some xml-files and xpathing them and then access a db with the filename as a key. That works, but

solr-dih does multiple queries for sub-entities

2013-03-04 Thread harpax
, then 2, 3, 4, .. I tried different attributes combinations (eg stripped it to the minimum), but still the same. This problem was asked before: http://lucene.472066.n3.nabble.com/DIH-multiple-queries-per-sub-entity-tt701038.html thanks a lot! regards Arne

Re: Set operations on multiple queries with different qf parameters

2011-05-18 Thread Jonathan Rochkind
cumentation for this feature apart from the mentioned blog post. Thanks, Nikhil - Original Message - From: Jonathan Rochkind To: solr-user@lucene.apache.org; Nikhil Chhaochharia Cc: Sent: Tuesday, 17 May 2011 8:52 PM Subject: Re: Set operations on multiple queries with different qf para

Re: Set operations on multiple queries with different qf parameters

2011-05-17 Thread Nikhil Chhaochharia
from the mentioned blog post. Thanks, Nikhil - Original Message - From: Jonathan Rochkind To: solr-user@lucene.apache.org; Nikhil Chhaochharia Cc: Sent: Tuesday, 17 May 2011 8:52 PM Subject: Re: Set operations on multiple queries with different qf parameters One way to do it mig

Re: Set operations on multiple queries with different qf parameters

2011-05-17 Thread Jonathan Rochkind
One way to do it might be to use the Solr 'nested query' functionality. http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/ Not entirely sure this will work exactly as I've written it, but give you some ideas of what nested query can do. Note not fully URL-encoded for clar

Set operations on multiple queries with different qf parameters

2011-05-16 Thread Nikhil Chhaochharia
Hi, I am using Solr 3.1 with edismax.  My frontend allows the user to create arbitrarily complex queries by modifying q, fq, qf and mm (only 1 and 100% are allowed) parameters.  The queries can then be saved by the user. The user should be able to perform set operations on the saved searches. 

DIH multiple queries per sub-entity?

2010-04-06 Thread Blargy
? -- View this message in context: http://n3.nabble.com/DIH-multiple-queries-per-sub-entity-tp701038p701038.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Shalin Shekhar Mangar
On Tue, Jun 9, 2009 at 4:03 PM, Avlesh Singh wrote: > I have an index with two fields - name and type. I need to perform a search > on the name field so that *equal number of results are fetched for each > type > *. > Currently, I am achieving this by firing multiple queries w

Re: Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Avlesh Singh
Tue, 09 Jun 2009 12:33:21 +0200, Avlesh Singh wrote: > > I have an index with two fields - name and type. I need to perform a >> search >> on the name field so that *equal number of results are fetched for each >> type >> *. >> Currently, I am achieving this by f

Re: Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Aleksander M. Stensby
pe. I need to perform a search on the name field so that *equal number of results are fetched for each type *. Currently, I am achieving this by firing multiple queries with a different type and then merging the results. In my database driven version, I used to do a "union" of m

Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Avlesh Singh
I have an index with two fields - name and type. I need to perform a search on the name field so that *equal number of results are fetched for each type *. Currently, I am achieving this by firing multiple queries with a different type and then merging the results. In my database driven version, I

Re: Solr Multiple Queries?

2009-06-09 Thread Aleksander M. Stensby
Hi there Samnang! Please see inline for comments: On Tue, 09 Jun 2009 08:40:02 +0200, Samnang Chhun wrote: Hi all, I just get started looking at using Solr as my search web service. But I don't know does Solr have some features for multiple queries: - Startswith This is what we

Solr Multiple Queries?

2009-06-08 Thread Samnang Chhun
Hi all, I just get started looking at using Solr as my search web service. But I don't know does Solr have some features for multiple queries: - Startswith - Exact Match - Contain - Doesn't Contain - In the range Could anyone guide me how to implement those features in Solr? Cheers, Samnang

RE: Multiple Queries

2009-04-29 Thread Ankush Goyal
ge- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Tuesday, April 28, 2009 4:05 PM To: solr-user@lucene.apache.org Subject: Re: Multiple Queries Have you considered indexing the reviews along with the hotels right in the hotel index? That way you would fetch the reviews right al

Re: Multiple Queries

2009-04-28 Thread Avlesh Singh
re in > the > > review-doc itself, which seems like would lower down the performance > > drastically. > > > > Any ideas on a better solution? > > > > Thanks! > > -Ankush > > > > -Original Message- > > From: Erick Erickson [mailt

Re: Multiple Queries

2009-04-28 Thread Amit Nithian
e performance > drastically. > > Any ideas on a better solution? > > Thanks! > -Ankush > > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Tuesday, April 28, 2009 4:05 PM > To: solr-user@lucene.apache.org > Subject: Re: Multiple Qu

RE: Multiple Queries

2009-04-28 Thread Ankush Goyal
eas on a better solution? Thanks! -Ankush -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Tuesday, April 28, 2009 4:05 PM To: solr-user@lucene.apache.org Subject: Re: Multiple Queries Have you considered indexing the reviews along with the hotels right in the ho

Re: Multiple Queries

2009-04-28 Thread Erick Erickson
Have you considered indexing the reviews along with the hotels right in the hotel index? That way you would fetch the reviews right along with the hotels... Really, this is another way of saying "flatten your data" ... Your idea of holding all the hotel reviews in memory is also viable, depending

Multiple Queries

2009-04-28 Thread Ankush Goyal
Hi, I have been trying to solve a performance issue: I have an index of hotels with their ids and another index of reviews. Now, when someone queries for a location, the current process gets all the hotels for that location. And, then corresponding to each hotel-id from all the hotel documents,

multiple queries in a single request?

2009-03-19 Thread Jonathan Haddad
Is it possible to do multiple queries in a single request, essentially the equivalent of an SQL UNION? -- Jonathan Haddad http://www.rustyrazorblade.com

Re: Multiple queries in single request

2009-03-08 Thread Noble Paul നോബിള്‍ नोब्ळ्
But it is still possible to have a RequestHandler (Say BatchRequestHandler ) which can take in multiple queries . say bc.q.count=3 bc.1.q=[(+a +b) ] bc.2.q=[(+a +c)] bc.3.q=[(+a+ d)] The response may contain several sections ...output one 1.q goes here ...output of 2.q goes here

Re: Multiple queries in single request

2009-03-07 Thread Shalin Shekhar Mangar
On Sat, Mar 7, 2009 at 4:06 AM, Ryan McKinley wrote: > >>> No but you can always fire three requests. Writing your own handler which >>> prints data in a custom format means that you can no longer use existing >>> solr clients for java/ruby/python etc. >>> >> >> That's not a fair characterization

Re: Multiple queries in single request

2009-03-06 Thread Ryan McKinley
No but you can always fire three requests. Writing your own handler which prints data in a custom format means that you can no longer use existing solr clients for java/ruby/python etc. That's not a fair characterization of at least the Ruby client. The NamedList (err, Hash in Ruby) is

RE: Multiple queries in single request

2009-03-06 Thread Brian Knoth
-user@lucene.apache.org Subject: Re: Multiple queries in single request If you're only after the count for those queries, use a standard request with a bunch of facet.query's. Erik On Mar 6, 2009, at 3:12 PM, Brian Knoth wrote: > Thanks for your comment. Yes, it would be simpl

Re: Multiple queries in single request

2009-03-06 Thread Erik Hatcher
eciate hearing them. Thanks, Brian -Original Message- From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] Sent: Friday, March 06, 2009 2:55 PM To: solr-user@lucene.apache.org Subject: Re: Multiple queries in single request On Sat, Mar 7, 2009 at 12:27 AM, Brian Knoth wrote:

Re: Multiple queries in single request

2009-03-06 Thread Erik Hatcher
o be able to present multiple queries to SOLR, for example: [(+a +b) ] [(+a +c)] [(+a+ d)] And get back a multi-result set (one for each query). I don't see that any of the default, included search handlers provide this capability? Is this possible, or would a custom handler need to be created.

Re: Multiple queries in single request

2009-03-06 Thread Shalin Shekhar Mangar
On Sat, Mar 7, 2009 at 1:42 AM, Brian Knoth wrote: > Thanks for your comment. Yes, it would be simple if it was just 3 queries, > I really have about 50-60 I'd like to consolidate as a single request. I'm > simply getting a count of records for each query, and right now, it takes > about 40mS for

RE: Multiple queries in single request

2009-03-06 Thread Brian Knoth
org Subject: Re: Multiple queries in single request On Sat, Mar 7, 2009 at 12:27 AM, Brian Knoth wrote: > Apologies up front if this is a often-asked newbie question, but I've > searched the solrhandler docs and I can't find what I'm interested in. > > I'd like to

Re: Multiple queries in single request

2009-03-06 Thread Shalin Shekhar Mangar
On Sat, Mar 7, 2009 at 12:27 AM, Brian Knoth wrote: > Apologies up front if this is a often-asked newbie question, but I've > searched the solrhandler docs and I can't find what I'm interested in. > > I'd like to be able to present multiple queries to SOLR, for e

Multiple queries in single request

2009-03-06 Thread Brian Knoth
Apologies up front if this is a often-asked newbie question, but I've searched the solrhandler docs and I can't find what I'm interested in. I'd like to be able to present multiple queries to SOLR, for example: [(+a +b) ] [(+a +c)] [(+a+ d)] And get back a multi-result set

Re: one query or multiple queries

2007-09-28 Thread Ian Lea
I'd guess the latter would be faster, but who knows? Try it both ways. -- Ian. On 9/28/07, Xuesong Luo <[EMAIL PROTECTED]> wrote: > Hi, there, > I have a user index(each user has a unique index record). If I want to > search 10 users, should I run 10 queries or 1 query with multiple user > ids

one query or multiple queries

2007-09-28 Thread Xuesong Luo
Hi, there, I have a user index(each user has a unique index record). If I want to search 10 users, should I run 10 queries or 1 query with multiple user ids? Is there any performance difference? Thanks Xuesong

one query or multiple queries

2007-09-27 Thread Xuesong Luo
Hi, I have a user index(each user has a unique index record) and need to get information for 10 users. Should I run 10 queries or 1 query with multiple user ids? Any performance difference? Thanks Xuesong