pazpar2-moved-to-github.git
13 years agoUse session_log rather than yaz_log
Adam Dickmeiss [Fri, 4 Nov 2011 12:55:14 +0000 (13:55 +0100)]
Use session_log rather than yaz_log

When displaying whether a client is newly created or reused.

13 years agoMerge branch 'master' into bug_4688
Adam Dickmeiss [Thu, 3 Nov 2011 14:54:42 +0000 (15:54 +0100)]
Merge branch 'master' into bug_4688

13 years agoGet rid of warning "Setting '%s' not configured as metadata"
Adam Dickmeiss [Thu, 3 Nov 2011 14:35:09 +0000 (15:35 +0100)]
Get rid of warning "Setting '%s' not configured as metadata"

13 years agoMerge branch 'master' into bug_4688
Adam Dickmeiss [Thu, 3 Nov 2011 12:51:20 +0000 (13:51 +0100)]
Merge branch 'master' into bug_4688

13 years agoMake proper diagnostic for client connect failures
Adam Dickmeiss [Thu, 3 Nov 2011 12:44:30 +0000 (13:44 +0100)]
Make proper diagnostic for client connect failures

13 years agoAdd client_set_state_nb
Adam Dickmeiss [Thu, 3 Nov 2011 12:40:07 +0000 (13:40 +0100)]
Add client_set_state_nb

Is like client_set_state, but never calls session_alert_watch.
This is used in the search phase, when a show is never fired anyway
and also because session is locked already so session_alert_watch
would make a deal-lock.

13 years agoRemove obsolete comment
Adam Dickmeiss [Thu, 3 Nov 2011 08:58:31 +0000 (09:58 +0100)]
Remove obsolete comment

13 years agoMore tests for checking that we can re-use result set
Adam Dickmeiss [Wed, 2 Nov 2011 14:26:51 +0000 (15:26 +0100)]
More tests for checking that we can re-use result set

13 years agoClients cached within session
Adam Dickmeiss [Wed, 2 Nov 2011 14:24:39 +0000 (15:24 +0100)]
Clients cached within session

Clients are reused if query and other parameters are same for
command=search. For example, if a subset of databases are used and
query is the same, the result set from previous search is reused.

13 years agoVersion 1.6.5 v1.6.5
Dennis Schafroth [Tue, 1 Nov 2011 13:36:07 +0000 (13:36 +0000)]
Version 1.6.5

13 years agoMerge branch 'spell-check'
Dennis Schafroth [Tue, 1 Nov 2011 13:00:40 +0000 (14:00 +0100)]
Merge branch 'spell-check'

13 years agoAdd new test solr spellcheck test. Not added to dist test for now.
Dennis Schafroth [Tue, 1 Nov 2011 12:51:08 +0000 (13:51 +0100)]
Add new test solr spellcheck test. Not added to dist test for now.

13 years agoAdd new test solr spellcheck test. Not added to dist test for now.
Dennis Schafroth [Tue, 1 Nov 2011 12:51:01 +0000 (13:51 +0100)]
Add new test solr spellcheck test. Not added to dist test for now.

13 years agoAdd new test solr spellcheck test. Not added to dist test for now.
Dennis Schafroth [Tue, 1 Nov 2011 12:50:59 +0000 (13:50 +0100)]
Add new test solr spellcheck test. Not added to dist test for now.

13 years agoAdd new test solr spellcheck test. Not added to dist test for now.
Dennis Schafroth [Tue, 1 Nov 2011 12:50:57 +0000 (13:50 +0100)]
Add new test solr spellcheck test. Not added to dist test for now.

13 years agoPrepare for 1.6.5 release
Dennis Schafroth [Tue, 1 Nov 2011 12:41:48 +0000 (13:41 +0100)]
Prepare for 1.6.5 release

13 years agoSuround by suggestions, if data in suggestions_xml
Dennis Schafroth [Tue, 1 Nov 2011 12:30:21 +0000 (13:30 +0100)]
Suround by suggestions, if data in suggestions_xml

13 years agoMerge branch 'spell-check'
Dennis Schafroth [Tue, 1 Nov 2011 11:23:37 +0000 (12:23 +0100)]
Merge branch 'spell-check'

13 years agoRecursively parses 'suggestions' for bytarget
Niels Erik G. Nielsen [Mon, 31 Oct 2011 17:04:39 +0000 (18:04 +0100)]
Recursively parses 'suggestions' for bytarget

(Spelling suggestions)

13 years agoMerge branch 'master' into spell-check
Dennis Schafroth [Fri, 28 Oct 2011 13:40:19 +0000 (15:40 +0200)]
Merge branch 'master' into spell-check

13 years agoGet target suggestions from client
Dennis Schafroth [Fri, 28 Oct 2011 13:35:34 +0000 (15:35 +0200)]
Get target suggestions from client

13 years agoprint suggestions if present
Dennis Schafroth [Fri, 28 Oct 2011 13:35:00 +0000 (15:35 +0200)]
print suggestions if present

13 years agoFor now return the suggestions directly.
Dennis Schafroth [Fri, 28 Oct 2011 13:32:53 +0000 (15:32 +0200)]
For now return the suggestions directly.

13 years agoFix date for 1.6.4 in NEWS
Adam Dickmeiss [Fri, 28 Oct 2011 12:33:38 +0000 (14:33 +0200)]
Fix date for 1.6.4 in NEWS

13 years agoVersion 1.6.4 v1.6.4
Adam Dickmeiss [Fri, 28 Oct 2011 10:20:54 +0000 (12:20 +0200)]
Version 1.6.4

13 years agoFix return value in service_xslt_config
Adam Dickmeiss [Fri, 28 Oct 2011 08:50:49 +0000 (10:50 +0200)]
Fix return value in service_xslt_config

13 years agoFor xslt error msg, refer to proper name
Adam Dickmeiss [Fri, 28 Oct 2011 08:48:46 +0000 (10:48 +0200)]
For xslt error msg, refer to proper name

13 years agoSupport for suggestions xml
Dennis Schafroth [Thu, 27 Oct 2011 15:21:46 +0000 (17:21 +0200)]
Support for suggestions xml

13 years agoadd suggestions to hitsbytarget output
Dennis Schafroth [Thu, 27 Oct 2011 15:20:58 +0000 (17:20 +0200)]
add suggestions to hitsbytarget output

13 years agoSupport for suggestions
Dennis Schafroth [Thu, 27 Oct 2011 15:20:26 +0000 (17:20 +0200)]
Support for suggestions

13 years ago1.6.3-2 for testing
Adam Dickmeiss [Thu, 27 Oct 2011 12:12:33 +0000 (14:12 +0200)]
1.6.3-2 for testing

13 years agoEmbedded XSLT stylesheets for service
Adam Dickmeiss [Thu, 27 Oct 2011 11:44:17 +0000 (13:44 +0200)]
Embedded XSLT stylesheets for service

New service definition element, xslt, that allows an embedded stylesheet
to be defined. This can be referred to from pz:xslt as an alternative to
external files.

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Dennis Schafroth [Tue, 25 Oct 2011 11:03:02 +0000 (13:03 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

13 years agoTrying to enable page on default
Dennis Schafroth [Tue, 25 Oct 2011 11:02:53 +0000 (13:02 +0200)]
Trying to enable page on default

13 years agoFix Auth: use default methods, not "true". Check for undefined hits in data. Work...
Dennis Schafroth [Tue, 25 Oct 2011 11:02:20 +0000 (13:02 +0200)]
Fix Auth: use default methods, not "true". Check for undefined hits in data. Work-around for not initial show. Default is now ServiceProxy, not pazpar2.

13 years agoFix dis-alignment on tab navigation elements
Dennis Schafroth [Tue, 25 Oct 2011 10:59:26 +0000 (12:59 +0200)]
Fix dis-alignment on tab navigation elements

13 years agoChange termlist result to include also empty lists
Adam Dickmeiss [Wed, 19 Oct 2011 17:02:51 +0000 (19:02 +0200)]
Change termlist result to include also empty lists

This makes it behave like previous release 1.6.3.

13 years agoOnly one search response
Adam Dickmeiss [Wed, 19 Oct 2011 10:37:57 +0000 (12:37 +0200)]
Only one search response

Remove call to http_send_response - it is already called in
reponse_close.

13 years agoFlush HTTP recording file
Adam Dickmeiss [Wed, 19 Oct 2011 09:31:38 +0000 (11:31 +0200)]
Flush HTTP recording file

13 years agoHTTP recording saves both requests and responses
Adam Dickmeiss [Wed, 19 Oct 2011 08:32:24 +0000 (10:32 +0200)]
HTTP recording saves both requests and responses

13 years agoAdd support for CF data element "id".
Mike Taylor [Tue, 18 Oct 2011 08:26:43 +0000 (09:26 +0100)]
Add support for CF data element "id".
Gets translated into pz:metadata[@type="id"].
May be needed for bug #4713, persistent identifiers.
(And will be useful even if we don't do that for EBSCO.)

13 years agoAvoid work on bad metadata (0 prt ref)
Adam Dickmeiss [Fri, 14 Oct 2011 10:30:21 +0000 (12:30 +0200)]
Avoid work on bad metadata (0 prt ref)

Problem introduced in commit 9d9593.

13 years agoRecord id is leaded "content: " or "position: "
Adam Dickmeiss [Wed, 12 Oct 2011 14:18:45 +0000 (16:18 +0200)]
Record id is leaded "content: " or "position: "

This is to indicate whether a record ID is based of the generated
mergekey (typically title and other) or depending on the result set
position.

13 years agoChanges
Adam Dickmeiss [Wed, 12 Oct 2011 14:18:38 +0000 (16:18 +0200)]
Changes

13 years agosort: only skip "identical" records from same target
Adam Dickmeiss [Wed, 12 Oct 2011 11:15:47 +0000 (13:15 +0200)]
sort: only skip "identical" records from same target

13 years agoDocument pz:sortmap
Adam Dickmeiss [Wed, 12 Oct 2011 11:11:33 +0000 (13:11 +0200)]
Document pz:sortmap

13 years agoHonor block=1 for show when re-searching (sort)
Adam Dickmeiss [Wed, 12 Oct 2011 10:40:21 +0000 (12:40 +0200)]
Honor block=1 for show when re-searching (sort)

Note that the condition for block=1 has changed. It will block if
any client has more records to be fetched. Previously: block if
no records at all have been fetched.

13 years agoUpdate test results for sort test
Adam Dickmeiss [Wed, 12 Oct 2011 09:34:23 +0000 (11:34 +0200)]
Update test results for sort test

13 years agoInitial search may perform (relevance) sort
Adam Dickmeiss [Wed, 12 Oct 2011 09:30:08 +0000 (11:30 +0200)]
Initial search may perform (relevance) sort

The increasing flag is now taken into consideration. The pz:sortmap
does not include sort spec flags anymore: just strategy:field .
More test results added. It is clear that the block flag is not
honored for show as it should: would like block=1 to wait until
first record comes in - after (re)search with different sort criteria.

13 years agoMore work on sorting
Adam Dickmeiss [Tue, 11 Oct 2011 13:25:40 +0000 (15:25 +0200)]
More work on sorting

Session only searches once for each sort criteria. Each record is
matched against all records in cluster, to avoid duplicates.

13 years agoRefactor how total hits are calculated
Adam Dickmeiss [Mon, 10 Oct 2011 14:18:24 +0000 (16:18 +0200)]
Refactor how total hits are calculated

This is to ensure it doesn't get increased when we extend a search.

13 years agoShow command may re-search for targets that support it
Adam Dickmeiss [Fri, 7 Oct 2011 13:12:16 +0000 (15:12 +0200)]
Show command may re-search for targets that support it

13 years agoRename client_get_url to client_get_id
Adam Dickmeiss [Thu, 6 Oct 2011 10:45:01 +0000 (12:45 +0200)]
Rename client_get_url to client_get_id

13 years agostruct database: rename member url to id
Adam Dickmeiss [Thu, 6 Oct 2011 10:40:04 +0000 (12:40 +0200)]
struct database: rename member url to id

13 years agoUse client_get_url rather than database->url
Adam Dickmeiss [Thu, 6 Oct 2011 10:32:04 +0000 (12:32 +0200)]
Use client_get_url rather than database->url

client_get_url is safer and more appropriate in client.c.

13 years agoRemove prototype for undefined load_targets
Adam Dickmeiss [Thu, 6 Oct 2011 10:27:32 +0000 (12:27 +0200)]
Remove prototype for undefined load_targets

13 years agoMinor refactor WRT databases
Adam Dickmeiss [Thu, 6 Oct 2011 10:21:13 +0000 (12:21 +0200)]
Minor refactor WRT databases

13 years agoRemove useless memset for database creation
Adam Dickmeiss [Thu, 6 Oct 2011 10:08:26 +0000 (12:08 +0200)]
Remove useless memset for database creation

13 years agoAdd test for chaning pz:url for target within a session
Adam Dickmeiss [Thu, 6 Oct 2011 10:03:10 +0000 (12:03 +0200)]
Add test for chaning pz:url for target within a session

13 years agoRefactor: host entries no longer part of database
Adam Dickmeiss [Thu, 6 Oct 2011 10:01:36 +0000 (12:01 +0200)]
Refactor: host entries no longer part of database

Simplifies code and allows pz:url to be modified within a session for
some target.

13 years agoPazpar2 honors pz:url setting
Adam Dickmeiss [Wed, 5 Oct 2011 13:18:35 +0000 (15:18 +0200)]
Pazpar2 honors pz:url setting

13 years agoRemove useless headers for database utilities
Adam Dickmeiss [Wed, 5 Oct 2011 11:46:27 +0000 (13:46 +0200)]
Remove useless headers for database utilities

13 years agoRemove useless comments
Adam Dickmeiss [Wed, 5 Oct 2011 11:41:13 +0000 (13:41 +0200)]
Remove useless comments

13 years agoRemove unused setting pz:ip
Adam Dickmeiss [Wed, 5 Oct 2011 11:40:01 +0000 (13:40 +0200)]
Remove unused setting pz:ip

13 years agoRemove unused pz:option_recordfilter
Adam Dickmeiss [Wed, 5 Oct 2011 11:38:35 +0000 (13:38 +0200)]
Remove unused pz:option_recordfilter

13 years agoResolve host for database just before search
Adam Dickmeiss [Wed, 5 Oct 2011 11:29:58 +0000 (13:29 +0200)]
Resolve host for database just before search

Postpone resolving of host for database till just befor search so
that we can take care of a setting to set the actual URL for
target rather than use database ID as before.

13 years agoSimplify ZURL resolving and use regular getaddrinfo
Adam Dickmeiss [Tue, 4 Oct 2011 13:12:56 +0000 (15:12 +0200)]
Simplify ZURL resolving and use regular getaddrinfo

Caching of DNS entries is done better by a local caching DNS or by libc.

13 years agoReformat
Adam Dickmeiss [Tue, 4 Oct 2011 07:40:19 +0000 (09:40 +0200)]
Reformat

13 years agoMinor refactor WRT settings parsing
Adam Dickmeiss [Mon, 3 Oct 2011 13:20:32 +0000 (15:20 +0200)]
Minor refactor WRT settings parsing

Shouldn't change functionality.

13 years agoRemove settings member from conf_service
Adam Dickmeiss [Mon, 3 Oct 2011 12:50:32 +0000 (14:50 +0200)]
Remove settings member from conf_service

Was not in use anywhere.

13 years agochdir may be defined in unistd.h
Adam Dickmeiss [Mon, 3 Oct 2011 12:49:52 +0000 (14:49 +0200)]
chdir may be defined in unistd.h

13 years agoUpdate test_facets results due to different output
Adam Dickmeiss [Fri, 30 Sep 2011 18:35:08 +0000 (20:35 +0200)]
Update test_facets results due to different output

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Adam Dickmeiss [Fri, 30 Sep 2011 12:49:39 +0000 (14:49 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

13 years agoRefactor Pazpar2 HTTP response writing code
Adam Dickmeiss [Fri, 30 Sep 2011 12:47:54 +0000 (14:47 +0200)]
Refactor Pazpar2 HTTP response writing code

Header and footer for successful responses is handled by a
command handler. This makes the formatting slightly different.
It also fixes the termlist response which did not include the
XML header before.

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Dennis Schafroth [Fri, 30 Sep 2011 12:34:11 +0000 (14:34 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

13 years agoCheck for valid zquery
Dennis Schafroth [Fri, 30 Sep 2011 12:34:07 +0000 (14:34 +0200)]
Check for valid zquery

13 years agocommand=termlist without name parameter returns all termlists
Adam Dickmeiss [Fri, 30 Sep 2011 12:00:56 +0000 (14:00 +0200)]
command=termlist without name parameter returns all termlists

Previously if name parameter was omitted, only "subject" was returned.

13 years agoDocument the OR operation for limit parameter
Adam Dickmeiss [Wed, 28 Sep 2011 10:52:40 +0000 (12:52 +0200)]
Document the OR operation for limit parameter

13 years agoDepend on YAZ 4.2.17
Adam Dickmeiss [Wed, 28 Sep 2011 10:42:34 +0000 (12:42 +0200)]
Depend on YAZ 4.2.17

Because of new function nmem_strsplit_escape2.

13 years agoImplement limitmap OR. Bug #4675
Adam Dickmeiss [Tue, 27 Sep 2011 14:12:33 +0000 (16:12 +0200)]
Implement limitmap OR. Bug #4675

This requires nmem_strsplit_escape2 from YAZ.

13 years agopazpar2 configure: needs YAZ 4.2.16
Adam Dickmeiss [Tue, 27 Sep 2011 14:12:27 +0000 (16:12 +0200)]
pazpar2 configure: needs YAZ 4.2.16

13 years agoVersion 1.6.3 v1.6.3
Adam Dickmeiss [Thu, 22 Sep 2011 10:51:18 +0000 (12:51 +0200)]
Version 1.6.3

13 years agoNews
Adam Dickmeiss [Thu, 22 Sep 2011 10:51:06 +0000 (12:51 +0200)]
News

13 years agoMake termlist sorting stable
Adam Dickmeiss [Wed, 21 Sep 2011 12:48:49 +0000 (14:48 +0200)]
Make termlist sorting stable

Terms with same frequency are now sorted by their display name.
This makes a pretty display and improves our regression test because
qsort is not a stable sort.

13 years agosolr-pz2.xsl part of dist; used by test_solr
Adam Dickmeiss [Wed, 21 Sep 2011 10:01:40 +0000 (12:01 +0200)]
solr-pz2.xsl part of dist; used by test_solr

13 years agoReference to limitmap; spell fixes
Adam Dickmeiss [Wed, 21 Sep 2011 09:59:01 +0000 (11:59 +0200)]
Reference to limitmap; spell fixes

13 years agoMention pz:limitmap ; not pz:facetmap
Adam Dickmeiss [Wed, 21 Sep 2011 09:15:53 +0000 (11:15 +0200)]
Mention pz:limitmap ; not pz:facetmap

13 years agotest_solr: update results for other SOLR server
Adam Dickmeiss [Tue, 20 Sep 2011 11:26:41 +0000 (13:26 +0200)]
test_solr: update results for other SOLR server

13 years agomake dist: include test_solr.{cfg,urls}
Adam Dickmeiss [Tue, 20 Sep 2011 11:14:15 +0000 (13:14 +0200)]
make dist: include test_solr.{cfg,urls}

13 years agotest_solr.sh: use http://ocs-test.indexdata.com/solr/
Adam Dickmeiss [Tue, 20 Sep 2011 11:07:06 +0000 (13:07 +0200)]
test_solr.sh: use ocs-test.indexdata.com/solr/

Is a public address.

13 years agotest_solr.sh uses stable SOLR test server
Adam Dickmeiss [Tue, 20 Sep 2011 11:04:27 +0000 (13:04 +0200)]
test_solr.sh uses stable SOLR test server

13 years agotest: proper header about what sh is using each cfg
Adam Dickmeiss [Tue, 20 Sep 2011 10:46:28 +0000 (12:46 +0200)]
test: proper header about what sh is using each cfg

13 years agolocal clean removes *.log *.dif
Adam Dickmeiss [Tue, 20 Sep 2011 10:35:09 +0000 (12:35 +0200)]
local clean removes *.log *.dif

13 years agoAdd target url to missing limitmap warning
Dennis Schafroth [Tue, 20 Sep 2011 10:13:19 +0000 (12:13 +0200)]
Add target url to missing limitmap warning

13 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
Dennis Schafroth [Tue, 20 Sep 2011 09:23:06 +0000 (11:23 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2

13 years agoNew special sort parameter value 'position'.
Adam Dickmeiss [Mon, 19 Sep 2011 13:21:28 +0000 (15:21 +0200)]
New special sort parameter value 'position'.

The 'position' sorts merged records by their original position
from the remote target. This is primarily useful for debugging and
may be used for targets that already perform some kind of relevance
ranking. Note that sort by default is decreasing; so to get records
in their original order sort=position:1 must be used.

13 years agoMove declaration
Adam Dickmeiss [Mon, 19 Sep 2011 13:20:55 +0000 (15:20 +0200)]
Move declaration

13 years agoRefactor code that extracts terms for relevance-ranking
Adam Dickmeiss [Mon, 19 Sep 2011 12:03:16 +0000 (14:03 +0200)]
Refactor code that extracts terms for relevance-ranking

Function pull_terms checks for max number of terms in termlist -
to prevent SEGV/exploit.

13 years agoRemove dead code: TXML is not a transfer syntax
Adam Dickmeiss [Mon, 19 Sep 2011 10:49:58 +0000 (12:49 +0200)]
Remove dead code: TXML is not a transfer syntax

13 years agotest facets uses version reported by yaz-client
Adam Dickmeiss [Thu, 15 Sep 2011 13:08:55 +0000 (15:08 +0200)]
test facets uses version reported by yaz-client

rather than yaz-config which is only available in the YAZ
development package.