Solr
  1. Solr
  2. SOLR-311

wrong quoting in tutorial - fails on windows

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:
      None
    • Environment:

      Windows XP and likely other windows variants

      Description

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

      and

      java -Ddata=args -jar post.jar '<delete><query>name:DDR</query></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:\downloads\temp\apache-solr-1.2.0\example\exampledocs>java -Ddata=args -jar post.jar '<delete><query>name:DDR</query></delete>'
      < was unexpected at this time.

      (sample DOS window WORKS)
      C:\downloads\temp\apache-solr-1.2.0\example\exampledocs>java -Ddata=args -jar post.jar "<delete><query>name:DDR</query></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

        Activity

        Hoss Man made changes -
        Field Original Value New Value
        Assignee Hoss Man [ hossman ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Hoss Man added a comment -

        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

        Show
        Hoss Man added a comment - 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
        Hoss Man committed 557739 (3 files)
        Paul Sundling created issue -

          People

          • Assignee:
            Hoss Man
            Reporter:
            Paul Sundling
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development