LISTSERV mailing list manager LISTSERV 16.0

Help for ZNG Archives


ZNG Archives

ZNG Archives


[email protected]


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

ZNG Home

ZNG Home

ZNG  September 2010

ZNG September 2010

Subject:

Re: Boolean search within an index

From:

Tim Williams <[log in to unmask]>

Reply-To:

SRU (Search and Retrieve Via URL) Implementors

Date:

Fri, 3 Sep 2010 08:36:17 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (60 lines)

On Thu, Sep 2, 2010 at 2:00 PM, LeVan,Ralph <[log in to unmask]> wrote:
> Nope, nothing like that in our grammar.  The intent is that SRU is a
> machine interface and software can turn a user query like you propose
> into the CQL query.

Who's intent? That seems unnecessarily limiting to me. *IF* that
truly is the intent, I would suggest the LOC folks have some
misleading descriptions going on... from the web page,

"The design objective is that queries be human readable and writable,
and that the language be intuitive while maintaining the
expressiveness of more complex languages."

> However, there is an easier way to do what you want.
>
> title = sea and title any "fish or turtle"

A typo? Boolean clauses aren't allowed in an any relation are they?

> This does the same thing.  The "any" relation puts an implicit "OR"
> between the terms and the relation "all" puts an implicit "AND" between
> the terms.

Yeah, I get the any and all, they're nice. When there are many of
them with only two terms though, and the need for prox's and not's
mixed in, that's not the cleanest solution. Supporting a construct
where an index+relation get projected upon a clause seems like a
no-brainer for the next version to me.

--tim

> Hope this helps!
>
> Ralph
>
>> -----Original Message-----
>> From: SRU (Search and Retrieve Via URL) Implementors
>> [mailto:[log in to unmask]] On Behalf Of Tim Williams
>> Sent: Thursday, September 02, 2010 1:12 PM
>> To: [log in to unmask]
>> Subject: Boolean search within an index
>>
>> I have this need to support complex boolean queries within a field.
>> I'd like to not have to repeat the 'index relation' over and over
>> within the statement.  Rather, I'd like something like
>>
>>    title = ((fish OR turtle) AND sea) - though, much more complex -
>> and don't want to have to write:
>>
>>   ((title = fish OR title = turtle) AND title = sea)
>>
>> Logically, it's just projecting the index and relation upon the
>> enclosed terms.  Before we depart from the CQL spec I thought I'd see
>> if there was a way to get similar 'shortcutting' using build-in
>> extension mechanisms?
>>
>> Thanks,
>> --tim
>

Top of Message | Previous Page | Permalink

Advanced Options


Options

Error during command authentication.

Error - unable to initiate communication with LISTSERV (errno=111). The server is probably not started.

Log In

Log In

Get Password

Get Password


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager