[ckan-dev] Solr Exact Search Terms

Biz Tweets optweets at gmail.com
Mon Oct 15 23:45:14 UTC 2018


I actually tried this earlier but i get this error below:

     <copyField source="ckanext-extractor_*" dest="exactsearch"/>
    <field name="exactsearch" type="string" indexed="true" stored="false"
required="true" />


2018-10-15 16:42:52,354 ERROR [pysolr] Solr responded with an error (HTTP
400): [Reason: ERROR: [doc=a6b0942b4ba341249f888489b47f02b6] multiple
values encountered for non multiValued copy field exactsearch: windows-1252]
2018-10-15 16:42:52,354 ERROR [ckan.lib.search] Error while indexing
dataset fee82d0b-02ef-4fcc-ac13-3295b6c0ca96: SearchIndexError("Solr
returned an error: (u'Solr responded with an error (HTTP 400): [Reason:
ERROR: [doc=a6b0942b4ba341249f888489b47f02b6] multiple values encountered
for non multiValued copy field exactsearch: windows-1252]',)",)
Traceback (most recent call last):
  File "/usr/lib/ckan/default/bin/paster", line 11, in <module>
    sys.exit(run())
  File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/command.py",
line 102, in run
    invoke(command, command_name, options, args[1:])
  File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/command.py",
line 141, in invoke
    exit_code = runner.run(args)
  File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/command.py",
line 236, in run
    result = self.command()
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 554, in
command
    self.rebuild()
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 577, in
rebuild
    quiet=self.options.quiet)
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/__init__.py", line
194, in rebuild
    defer_commit
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/index.py", line 101,
in update_dict
    self.index_package(pkg_dict, defer_commit)
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/index.py", line 300,
in index_package
    raise SearchIndexError(msg)
ckan.lib.search.common.SearchIndexError: Solr returned an error: (u'Solr
responded with an error (HTTP 400): [Reason: ERROR:
[doc=a6b0942b4ba341249f888489b47f02b6] multiple values encountered for non
multiValued copy field exactsearch: windows-1252]',)



On Mon, Oct 15, 2018 at 3:34 AM <Florian.Brucker at it.karlsruhe.de> wrote:

> Hi,
>
> the following Stack Overflow post explains how to configure Solr for exact
> text searching:
>
>         https://stackoverflow.com/questions/2630879/solr-exact-word-search
>
>
> Regards,
> Florian
>
>
> "ckan-dev" <ckan-dev-bounces at lists.okfn.org> schrieb am 15.10.2018
> 06:23:52:
>
> > Von: Biz Tweets <optweets at gmail.com>
> > An: ckan-dev at lists.okfn.org,
> > Datum: 15.10.2018 06:24
> > Betreff: [ckan-dev] Solr Exact Search Terms
> > Gesendet von: "ckan-dev" <ckan-dev-bounces at lists.okfn.org>
> >
> > I have a dataset named "Visual" But if i search "Visualization" in
> > the search bar it still returns the dataset Visual in search since
> > it includes that text in the search term.
> >
> > Does anyone have any suggestions on how to modify my solr schema to
> > search for more exact terms using the "text" field.
> >
> > Thanks!_______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181015/a438799d/attachment-0002.html>


More information about the ckan-dev mailing list