[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-09-25 Thread Stefan Matheis (steffkes) (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462956#comment-13462956
 ] 

Stefan Matheis (steffkes) commented on SOLR-3734:
-

[~lancenorskog] would you mind having a look, if that works as expected?

> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
>Assignee: Stefan Matheis (steffkes)
> Attachments: SOLR-3734.patch, SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-09-26 Thread Lance Norskog (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464413#comment-13464413
 ] 

Lance Norskog commented on SOLR-3734:
-

Hi-

Yes, this works in branch_4x, using the schema I submitted. I do not have 
ability to test whether it handles exceptions well. When you are writing new 
analyzer components, it is helpful for the UI to say "your code blew up".


> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
>Assignee: Stefan Matheis (steffkes)
> Attachments: SOLR-3734.patch, SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-10-06 Thread Stefan Matheis (steffkes) (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470962#comment-13470962
 ] 

Stefan Matheis (steffkes) commented on SOLR-3734:
-

Committed revision 1394980. lucene_solr_4_0

> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
>Assignee: Stefan Matheis (steffkes)
> Fix For: 4.1
>
> Attachments: SOLR-3734.patch, SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-08-31 Thread Stefan Matheis (steffkes) (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445820#comment-13445820
 ] 

Stefan Matheis (steffkes) commented on SOLR-3734:
-

The reason is pretty simple: in your schema, you have copyfield for a 
non-existing field defined:

{code}alphaNameSort: {
  type: "alphaOnlySort",
  flags: "IT-O-l",
  copyDests: [ ],
  copySources: [

"org.apache.solr.schema.SchemaField:name_def{type=textgen,properties=indexed,tokenized,stored}"
  ]
}{code}

from the schema.xml:

{code} 
 
 {code}

That is a case which the Schema-Browser is right now not able to handle 
correctly .. Perhaps we can/should collect such information/"problems" and 
display them to the user?

> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
> Attachments: SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-08-31 Thread Lance Norskog (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446358#comment-13446358
 ] 

Lance Norskog commented on SOLR-3734:
-

If there is an exception or a timeout, the UI should show the problem.

> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
> Attachments: SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-09-05 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449267#comment-13449267
 ] 

Hoss Man commented on SOLR-3734:


bq. The reason is pretty simple: in your schema, you have copyfield for a 
non-existing field defined:

steffkes: i don't understand your comment.  those copyField's are legal, and 
the fields do exist, because there are dynamicField's that define them...

{noformat}


{noformat}

Is there a problem in the request handler the UI is using to get schema 
information, that it doesn't expose these source/dest fields if they xist 
because of dynamicField, or is the problem solely in the javascript code?

(ie: can i help?)

> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
> Attachments: SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-09-05 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449303#comment-13449303
 ] 

Hoss Man commented on SOLR-3734:


watching the logs while using the UI, it seems that the crux of the info all 
comes from these two urls...

{noformat}
INFO: [collection1] webapp=/solr path=/admin/luke params={numTerms=0&wt=json} 
status=0 QTime=10 
Sep 5, 2012 4:51:45 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/luke params={wt=json&show=schema} 
status=0 QTime=3 
{noformat}

Ignoring for a moment that it seems absurd to me that the strings in the 
"copyDests" and "copySources" arrays are the "toString" of the 
SchemaField/CopyField objects, instead of just the field names: i *think* the 
data in the response is correct.

It seems, if i'm understanding correctly, that the root problem is that the UI 
expects all copySources returned by show=schema to be real field names that 
were already by the previous numTerms=0 request - but this is not guaranteed, 
nor is it abnormal to have these copyFields based on dynamicFields.

And if i'm understanding correctly, all the UI is doing with this information 
is populating "Copied from" and "Copied to" lists, which then link to 
"/schema-browser?field=foo" (and maybe "/schema-browser?dynamic-field=foo_*" - 
but i didn't actually see any examples of that) to see details about those 
fields.  But the "/schema-browser?field=foo" URLs only seem to work if that 
field actaully exists in the luke?numTerms=0 response -- even if they are legal 
because of dynamicField.

So, for example, this address_s URL doesn't work in the UI  using the example 
configs on trunk if you have no data indexed, but once you index the sample 
data it does start to work...

http://localhost:8983/solr/#/collection1/schema-browser?field=address_s

I think the "correct" fixes would be...

* the UI should not freak out if a copySources or copyDest refers to a field or 
dynamic field pattern it doesn't know about.  it should list it in the display 
as usual and provide the appropriate ?field=foo or ?field=foo_* link (depending 
on wether the copySource contains a wildcard.
* if someone clicks on one of those links, and there is no field data available 
about a field (because it isn't explicitly declared, nor does it exist in the 
index, so it's not returned by the luke?numTerms=0 request) then the UI should 
display a simple warning "Field not found in index, no details available" or 
something like that.  

We can probably look into improving that second case in the future (so even if 
it's not in the index, and wasn't returned by the luke?numTerms-0 request, the 
UI should be able to ask luke for info about a field by name, and have luke 
response back with "not currently in the index, but it is a legal field name 
because of dynamicField foo_*, and heres' the fieldType and field flags")






> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
> Attachments: SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2012-09-06 Thread Stefan Matheis (steffkes) (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449544#comment-13449544
 ] 

Stefan Matheis (steffkes) commented on SOLR-3734:
-

bq. It seems, if i'm understanding correctly, that the root problem is that the 
UI expects all copySources returned by show=schema to be real field names that 
were already by the previous numTerms=0 request - but this is not guaranteed, 
nor is it abnormal to have these copyFields based on dynamicFields.

steffkes 0 : hoss 1 :/ exactly what you said - didn't look close enough .. i'll 
rework the patch and try to get your two points in it!

> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
> Attachments: SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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



[jira] [Commented] (SOLR-3734) Forever loop in schema browser

2013-03-22 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610720#comment-13610720
 ] 

Commit Tag Bot commented on SOLR-3734:
--

[branch_4x commit] Stefan Matheis
http://svn.apache.org/viewvc?view=revision&revision=1392320

SOLR-3734: Improve Schema-Browser Handling for CopyField using dynamicField's 
(merge r1392318)


> Forever loop in schema browser
> --
>
> Key: SOLR-3734
> URL: https://issues.apache.org/jira/browse/SOLR-3734
> Project: Solr
>  Issue Type: Bug
>  Components: Schema and Analysis, web gui
>Reporter: Lance Norskog
>Assignee: Stefan Matheis (steffkes)
> Fix For: 4.1
>
> Attachments: SOLR-3734.patch, SOLR-3734.patch, 
> SOLR-3734_schema_browser_blocks_solr_conf_dir.zip
>
>
> When I start Solr with the attached conf directory, and hit the Schema 
> Browser, the loading circle spins permanently. 
> I don't know if the problem is in the UI or in Solr. The UI does not display 
> the Ajax solr calls, and I don't have a debugging proxy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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