List Info

Thread: Created: (SOLR-311) wrong quoting in tutorial - fails on windows




Created: (SOLR-311) wrong quoting in tutorial - fails on windows
country flaguser name
United States
2007-07-18 19:58:04
wrong quoting in tutorial - fails on windows
--------------------------------------------

                 Key: SOLR-311
                 URL: https:
//issues.apache.org/jira/browse/SOLR-311
             Project: Solr
          Issue Type: Bug
          Components: documentation
         Environment: Windows XP and likely other windows
variants
            Reporter: Paul Sundling
            Priority: Trivial


java -Ddata=args -Dcommit=no -jar post.jar
'<delete><id>SP2514N</id></delete>'

and

java -Ddata=args -jar post.jar
'<delete><query>nameDR</q
uery></delete>'

should have their single quotes replaced with double quotes.
 Otherwise, it results in the following error on windows
command line:

(sample DOS window FAILS)
C:downloadstempapache-solr-1.2.0exampleexampledocs>j
ava -Ddata=args -jar post.jar
'<delete><query>nameDR</q
uery></delete>'
< was unexpected at this time.

(sample DOS window WORKS)
C:downloadstempapache-solr-1.2.0exampleexampledocs>j
ava -Ddata=args -jar post.jar
"<delete><query>nameDR</q
uery></delete>"
SimplePostTool: version 1.2
SimplePostTool: WARNING: Make sure your XML documents are
encoded in UTF-8, other encodings are not currently
supported
SimplePostTool: POSTing args to http://localhost:
8983/solr/update..
SimplePostTool: COMMITting Solr index changes..

As demonstrated double quotes works with windows.  I also
tested double quotes in cygwin, and it should presumably
work for linux/UNIX as well.

I started to do a patch, but I see there are three locations
where updates might need to be made and I wasn't sure how
PDF files were generated, so here's the list of effected
source files:

site/tutorial.html
site/tutorial.pdf
src/site/src/documentation/content/xdocs/tutorial.xml

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Resolved: (SOLR-311) wrong quoting in tutorial - fails on windows
country flaguser name
United States
2007-07-19 14:07:06
     [ 
https://issues.apache.org/jira/browse/SOLR-311?page=com.atla
ssian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-311.
---------------------------

    Resolution: Fixed
      Assignee: Hoss Man


thanks for pointing this out.

FYI: the html and pdf versions are generated from the xml by
forrest.

Committed revision 557739.
website sync should be ~30 minutes

> wrong quoting in tutorial - fails on windows
> --------------------------------------------
>
>                 Key: SOLR-311
>                 URL: https:
//issues.apache.org/jira/browse/SOLR-311
>             Project: Solr
>          Issue Type: Bug
>          Components: documentation
>         Environment: Windows XP and likely other
windows variants
>            Reporter: Paul Sundling
>            Assignee: Hoss Man
>            Priority: Trivial
>
> java -Ddata=args -Dcommit=no -jar post.jar
'<delete><id>SP2514N</id></delete>'
> and
> java -Ddata=args -jar post.jar
'<delete><query>nameDR</q
uery></delete>'
> should have their single quotes replaced with double
quotes.  Otherwise, it results in the following error on
windows command line:
> (sample DOS window FAILS)
>
C:downloadstempapache-solr-1.2.0exampleexampledocs>j
ava -Ddata=args -jar post.jar
'<delete><query>nameDR</q
uery></delete>'
> < was unexpected at this time.
> (sample DOS window WORKS)
>
C:downloadstempapache-solr-1.2.0exampleexampledocs>j
ava -Ddata=args -jar post.jar
"<delete><query>nameDR</q
uery></delete>"
> SimplePostTool: version 1.2
> SimplePostTool: WARNING: Make sure your XML documents
are encoded in UTF-8, other encodings are not currently
supported
> SimplePostTool: POSTing args to http://localhost:
8983/solr/update..
> SimplePostTool: COMMITting Solr index changes..
> As demonstrated double quotes works with windows.  I
also tested double quotes in cygwin, and it should
presumably work for linux/UNIX as well.
> I started to do a patch, but I see there are three
locations where updates might need to be made and I wasn't
sure how PDF files were generated, so here's the list of
effected source files:
> site/tutorial.html
> site/tutorial.pdf
> src/site/src/documentation/content/xdocs/tutorial.xml

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )