Switch to unified view

a/src/doc/user/usermanual.sgml b/src/doc/user/usermanual.sgml
...
...
2600
text/html       [file:///Users/uncrypted-dockes/projets/nautique/webnautique/articles/ilur1/index.html] [Constructio...
2600
text/html       [file:///Users/uncrypted-dockes/projets/nautique/webnautique/articles/ilur1/index.html] [Constructio...
2601
text/html       [file:///Users/uncrypted-dockes/projets/pagepers/index.html]    [psxtcl/writemime/recoll]...
2601
text/html       [file:///Users/uncrypted-dockes/projets/pagepers/index.html]    [psxtcl/writemime/recoll]...
2602
text/html       [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/recu-chasse-maree....
2602
text/html       [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/recu-chasse-maree....
2603
</programlisting>
2603
</programlisting>
2604
      </sect1>
2604
      </sect1>
2605
2606
  <sect1 id="RCL.SEARCH.PTRANS">
2607
    <title>Path translations</title>
2608
    
2609
    <para>In some cases, the document paths stored inside the index do
2610
      not match the actual ones, so that document
2611
      previews and accesses will fail. This can occur in a number of
2612
      circumstances:</para>
2613
    <itemizedlist>
2614
      <listitem><para>When using multiple indexes it is a relatively common
2615
          occurrence that some will actually reside on a remote volume, for
2616
          exemple mounted via NFS. In this case, the paths used to access
2617
          the documents on the local machine are not necessarily the same
2618
          than the ones used while indexing on the remote machine. For
2619
          example, <filename>/home/me</filename> may have been used as
2620
          a <literal>topdirs</literal> elements while indexing, but the
2621
          directory might be mounted
2622
          as <filename>/net/server/home/me</filename> on the local
2623
          machine.</para></listitem>
2624
2625
      <listitem><para>The case may also occur with removable
2626
          disks. It is perfectly possible to configure an index to
2627
          live with the documents on the removable disk, but it may
2628
          happen that the disk is not mounted at the same place so
2629
          that the documents paths from the index are
2630
          invalid.</para></listitem>
2631
      
2632
      <listitem><para>As a last exemple, one could imagine that a big
2633
          directory has been moved, but that it is currently
2634
          inconvenient to run the indexer.</para></listitem>
2635
    </itemizedlist>
2636
2637
    <para>More generally, the path translation facility may be useful
2638
      whenever the documents paths seen by the indexer are not the same
2639
      as the ones which should be used at query time.</para>
2640
2641
    <para>&RCL; has a facility for rewriting access paths when
2642
      extracting the data from the index. The translations can be
2643
      defined for the main index and for any additional query
2644
      index.</para>
2645
2646
    <para>In the above NFS example, &RCL; could be instructed to
2647
      rewrite any <filename>file:///home/me</filename> URL from the
2648
      index to <filename>file:///net/server/home/me</filename>,
2649
      allowing accesses from the client.</para>
2650
2651
    <para>The translations are defined in the 
2652
      <link linkend="RCL.INSTALL.CONFIG.PTRANS">
2653
        <filename>ptrans</filename></link> configuration file, which
2654
        can be edited by hand or from the GUI external indexes
2655
      configuration dialog.</para>
2656
  </sect1>
2657
2658
2605
2659
2606
    <sect1 id="RCL.SEARCH.LANG">
2660
    <sect1 id="RCL.SEARCH.LANG">
2607
      <title>The query language</title>
2661
      <title>The query language</title>
2608
2662
2609
      <para>The query language processor is activated in the GUI
2663
      <para>The query language processor is activated in the GUI
...
...
5388
         lists (the values are the basenames of the png images inside
5442
         lists (the values are the basenames of the png images inside
5389
         the <filename>iconsdir</filename> directory (specified in
5443
         the <filename>iconsdir</filename> directory (specified in
5390
         <filename>recoll.conf</filename>).</para>
5444
         <filename>recoll.conf</filename>).</para>
5391
5445
5392
      </sect2>
5446
      </sect2>
5447
5393
      <sect2 id="RCL.INSTALL.CONFIG.MIMEVIEW">
5448
      <sect2 id="RCL.INSTALL.CONFIG.MIMEVIEW">
5394
        <title>The mimeview file</title>
5449
        <title>The mimeview file</title>
5395
5450
5396
        <para><filename>mimeview</filename> specifies which programs
5451
        <para><filename>mimeview</filename> specifies which programs
5397
          are started when you click on an <guilabel>Open</guilabel> link
5452
          are started when you click on an <guilabel>Open</guilabel> link
...
...
5498
        the field named <literal>fieldname</literal> for the
5553
        the field named <literal>fieldname</literal> for the
5499
        document. This could be used in combination with field
5554
        document. This could be used in combination with field
5500
        customisation to help with opening the document.</para> 
5555
        customisation to help with opening the document.</para> 
5501
5556
5502
      </sect2>
5557
      </sect2>
5558
5559
      <sect2 id="RCL.INSTALL.CONFIG.PTRANS">
5560
        <title>The <filename>ptrans</filename> file</title>
5561
5562
        <para><filename>ptrans</filename> specifies query-time path
5563
          translations. These can be useful
5564
          in <link linkend="RCL.SEARCH.PTRANS">multiple
5565
          cases</link>.</para>
5566
        <para>The file has a section for any index which needs
5567
          translations, either the main one or additional query
5568
          indexes. The sections are named with the &XAP; index
5569
          directory names. No slash character should exist at the end
5570
          of the paths (all comparisons are textual). An exemple
5571
          should make things sufficiently clear</para>
5572
5573
        <programlisting>
5574
          [/home/me/.recoll/xapiandb]
5575
          /this/directory/moved = /to/this/place
5576
5577
          [/path/to/additional/xapiandb]
5578
          /server/volume1/docdir = /net/server/volume1/docdir
5579
          /server/volume2/docdir = /net/server/volume2/docdir
5580
        </programlisting>
5581
5582
      </sect2>
5583
5503
5584
5504
      <sect2 id="RCL.INSTALL.CONFIG.EXAMPLES">
5585
      <sect2 id="RCL.INSTALL.CONFIG.EXAMPLES">
5505
        <title>Examples of configuration adjustments</title>
5586
        <title>Examples of configuration adjustments</title>
5506
5587
5507
        <sect3 id="RCL.INSTALL.CONFIG.EXAMPLES.ADDVIEW">
5588
        <sect3 id="RCL.INSTALL.CONFIG.EXAMPLES.ADDVIEW">