[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14320806#comment-14320806
 ] 

ASF subversion and git services commented on SOLR-6311:
---

Commit 1659694 from [~thelabdude] in branch 'dev/trunk'
[ https://svn.apache.org/r1659694 ]

SOLR-6311: SearchHandler should use path when no qt or shard.qt parameter is 
specified

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
Assignee: Timothy Potter
 Attachments: SOLR-6311.patch, SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14320854#comment-14320854
 ] 

ASF subversion and git services commented on SOLR-6311:
---

Commit 1659699 from [~thelabdude] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1659699 ]

SOLR-6311: SearchHandler should use path when no qt or shard.qt parameter is 
specified

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
Assignee: Timothy Potter
 Attachments: SOLR-6311.patch, SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-11 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14316493#comment-14316493
 ] 

Hoss Man commented on SOLR-6311:


bq.  It should have been done this way to begin with. I consider it a bug that 
distributed requests were apparently hard-coded to use /select

Definitely not a bug.

you have to remember the context of how distributed search was added -- prior 
to SolrCloud, you had to specify a shards param listing all of the cores you 
wanted to do a distributed search over, and the primary convinience mechanism 
for doing that was to register a handler like this...

{noformat}
requestHandler name=/my_handler class=solr.SearchHandler/
  lst name=defaults
str name=shardsfoo:8983/solr,bar:8983/solr/str
int name=rows100/int
  /lst
/requestHandler
{noformat}

...so the choice to have shards.qt default to /select instead of the 
current qt was _extremely_ important to make distributed search function 
correctly for most users for multiple reasons:

1) so that the shards param wouldn't cause infinite recursion
2) so that the defaults wouldn't be automatically inherited by the per-shard 
requests

But now is not then -- the default behavior of shards.qt should change to make 
the most sense given the features and best practice currently available in 
Solr.  SolrCloud solves #1, and IIUC useParams solves #2, so we can move 
forward.


 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
Assignee: Timothy Potter
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-11 Thread Timothy Potter (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14316751#comment-14316751
 ] 

Timothy Potter commented on SOLR-6311:
--

I'm going with [~hossman]'s suggestion of using the LUCENE_MATCH_VERSION and am 
targeting this fix for the 5.1 release. So my first inclination was to do:

{code}
if 
(req.getCore().getSolrConfig().luceneMatchVersion.onOrAfter(Version.LUCENE_5_1_0))
 {
 ...
{code}

But Version.LUCENE_5_1_0 is deprecated, so do I do this instead? 

{code}
if (req.getCore().getSolrConfig().luceneMatchVersion.onOrAfter(Version.LATEST)) 
{
...
{code}

I guess it's the deprecated thing that's throwing me off.

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
Assignee: Timothy Potter
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-11 Thread Timothy Potter (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14316767#comment-14316767
 ] 

Timothy Potter commented on SOLR-6311:
--

nm! If I look at branch5x, my question is answered ;-) sometimes you have to 
look outside of trunk to see clearly!

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
Assignee: Timothy Potter
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-11 Thread David Smiley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14316242#comment-14316242
 ] 

David Smiley commented on SOLR-6311:


bq. i think we should just bite the bullet on making the switch...

+1 to that!  It should have been done this way to begin with. I consider it a 
bug that distributed requests were apparently hard-coded to use /select

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-11 Thread Steve Molloy (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14316967#comment-14316967
 ] 

Steve Molloy commented on SOLR-6311:


bq. Definitely not a bug. you have to remember the context of how distributed 
search was added 

Thanks for the history, makes it clearer why it was needed.

bq. But now is not then

Indeed, now distributed/SolrCloud is pretty much the norm...

So anyhow, patch with logic on version makes sense for me, so +1. 

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
Assignee: Timothy Potter
 Attachments: SOLR-6311.patch, SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-10 Thread Timothy Potter (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14314389#comment-14314389
 ] 

Timothy Potter commented on SOLR-6311:
--

Same issue I stumbled upon trying to fix SOLR-4479.

bq. Most of the time, other handlers were used to add default parameters.

True, but sometimes they also add search components so silently routing shard 
requests to {{/select}} is just plain wrong.

Seems like maybe the the hook to determine if the path should be applied as the 
default for {{shards.qt}} is whether there are custom components defined on 
that instance of SearchHandler? Seems a little nuanced but better for new users 
than the current experience.

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-10 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14314547#comment-14314547
 ] 

Hoss Man commented on SOLR-6311:


doesn't the initParam stuff noble added improve the situation with vanity 
handler paths that have defaults? and doesn't it play nice with distibuted 
requests? (so that it only adds the defaults on the initial request, not the 
per-shard requests -- if not it should)

i think we should just bite the bullet on making the switch...

straw man:

* make behavior conditional on LUCENE_MATCH_VERSION
** if  X, shards.qt defaults to /select
** if  X, shards.qt defaults to current handler
* users who want to upgrade LUCENE_MATCH_VERSION but still get legacy behavior 
for vanity handler defaults should make hte burden of adding shards.qt=/select 
to the invariants for each of their vanity handlers

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2015-02-10 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14314656#comment-14314656
 ] 

Noble Paul commented on SOLR-6311:
--

[~hossman] 
With InitParams , the behavior is exacly similar as if we have specified the 
the config in the requestHandler itself

But, as you said, I expect users to configure a lot more paths with the 
useParams feature with each mapping to a SearchHandler itself but a different 
set of params and a nice descriptive name. Coupled with the fact that you can 
change the params themselves pretty easily it will be more common. So you may 
see paths like {{/bestproducts-by-rating}} {{/best-products-by-sale}} etc. 

So it should not really hurt moving to shards.qt=qt




 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2014-08-07 Thread Steve Molloy (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14089286#comment-14089286
 ] 

Steve Molloy commented on SOLR-6311:


Haven't had much time to look into alternate solution yet, but for the point of 
default parameters. What is then the impact of having default parameters on 
/select handler itself? Is there some limitations on parameters that should be 
set as defaults in /select handler? Even example config comes with defaults and 
suggests that more can be added.

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2014-08-05 Thread Steve Molloy (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14086237#comment-14086237
 ] 

Steve Molloy commented on SOLR-6311:


Thanks Yonik, hadn't thought of that. I'll think about alternatives for this 
as. Our main usage of different handlers is for using different sets of 
components (the suggester in its own handler for autocomplete being an 
example), in which case it seems wrong to force the request to contain 
shards.qt for distributed searches when we're trying to hide the fact that it's 
distributed by using collections.

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2014-08-04 Thread David Smiley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14085234#comment-14085234
 ] 

David Smiley commented on SOLR-6311:


Strong +1 from me; I have no idea why it wasn't this way from the beginning.

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2014-08-04 Thread Yonik Seeley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14085258#comment-14085258
 ] 

Yonik Seeley commented on SOLR-6311:


bq. When performing distributed searches, you have to specify shards.qt unless 
you're on the default /select path for your handler.

This was by design, and we should consider very carefully before changing it.
Most of the time, other handlers were used to add default parameters.  When 
this is the case, it's preferable to hit a bare /select handler for 
sub-requests as hitting the same handler again and adding defaults again will 
have a lot of side effects and sometimes produce incorrect distributed results. 
 The worst is when a handler specifies shards or something, and this causes an 
endless loop.

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6311) SearchHandler should use path when no qt or shard.qt parameter is specified

2014-08-04 Thread David Smiley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14085293#comment-14085293
 ] 

David Smiley commented on SOLR-6311:


Good point Yonik; I forgot about that.  It's not this simple then.  In general, 
the need to specify shards.qt is to ensure one's customized components (e.g. 
spellcheck) are registered; it's not for request parameters.  Perhaps the 
solution is to have a shard request ignore parameters specified in the request 
handler?

 SearchHandler should use path when no qt or shard.qt parameter is specified
 ---

 Key: SOLR-6311
 URL: https://issues.apache.org/jira/browse/SOLR-6311
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.9
Reporter: Steve Molloy
 Attachments: SOLR-6311.patch


 When performing distributed searches, you have to specify shards.qt unless 
 you're on the default /select path for your handler. As this is configurable, 
 even the default search handler could be on another path. The shard requests 
 should thus default to the path if no shards.qt was specified.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org