Brad Fitzpatrick
5c2ad4eaae
search: fix websocket crash
...
Fixes #563
Change-Id: Iff04e4a40406ddd391f3c8fc93dcfe0209806ee3
2015-01-19 09:29:19 -08:00
Brad Fitzpatrick
e0624177cd
search: add blobref sorting, implementing sorting of results when source is unsorted
...
Part of upcoming blobpacked migration tool.
Change-Id: Ifdc4723d4d1468eb4d2798fadb256b409cfe0555
2015-01-17 20:31:41 -08:00
Steven L. Speek
200a5cbcde
search: context.Context stored in parser
...
Change-Id: I4e7986e7f27c9cf1115e7e251a9e87ae506134c5
2014-11-13 21:17:24 +01:00
Brad Fitzpatrick
a16c015f32
pkg/client: make Describe use a POST request to the server
...
Otherwise it can't send Describe Rules.
Also in this commit: a bunch of new tests from when I thought I was going crazy
and trying to debug the search system, before I realized the problem was that the
client was doing a GET request and dropping most of my DescribeRequest.
Change-Id: I4ea9bed80f0d7d6b86814527b63acc3586ac1d06
2014-10-19 17:36:22 +02:00
Brad Fitzpatrick
6517bbc392
Send system status JSON on websockets upon connect and when it changes.
...
Change-Id: Ic0f211611d63b9d519ee3c5da0dd96c6b77459d5
2014-08-29 14:12:02 -07:00
Brad Fitzpatrick
2d03daa802
Remove test.TB and use testing.TB, now that we depend on Go 1.3
...
Change-Id: Ie7c2e021a95705d2fe8379bdbb43c24fd0714836
2014-08-25 16:43:34 -07:00
Brad Fitzpatrick
de629e036c
search: allow searching by file wholeref
2014-07-29 14:38:20 -07:00
mpl
26cb64e825
Introduce search.QueryDescriber interface. *client.Client implements it.
...
There are several places where we're using a *search.Handler, when we
only want to be able to do query and describe requests. When these
places need to be moved also out of the context of camlistored, (like
when making a server app such as the publisher), the QueryDescriber can
be used, and the adequate implementation (*search.Handler,
*client.Client, or any other) is used depending on the context.
Change-Id: Ie1c5bb6f1bbba32c24a8eb2d1175af95ffcc8335
2014-07-21 22:20:24 +02:00
mpl
1fd526b999
test/transport.go: move to httputil, so we can use it without linking testing
...
Change-Id: I889d167a78ef0fba5ef2e9e3e884f594e151e940
2014-07-14 18:33:10 +02:00
Brad Fitzpatrick
bafc53703d
context: don't allow mutating an existing context's HTTP client
...
Instead, require specifying it when constructing a new context.
Prevents misuse and bugs / data races.
Change-Id: I775e998bf69b9e238ec726c469494c1a65f8f9de
2014-07-02 14:34:24 -07:00
Brad Fitzpatrick
17fc1906d8
search: fix typo in is:portrait
...
Change-Id: Icaf9fcc9196d56b76733f16e84ea059b8493f18f
2014-06-26 11:36:53 -07:00
Steven L. Speek
3fc2669025
search: empty string values for attr and tag predicates
...
Fixes issue_461
Change-Id: I94cba8be70f30eca456d990ba4f4db2618b24553
2014-06-22 20:11:37 +02:00
Brad Fitzpatrick
bf3d86e471
search: add attribute substring search
...
Change-Id: I3b30541c43b5fba84491b98ed73d34a64465c24e
2014-06-20 12:10:20 -07:00
Brad Fitzpatrick
a57da00936
search: add is:post and is:checkin
...
Change-Id: I0d7c5f969de5a5c6bbf6dfd7acfb4774f0a00d4a
2014-06-20 11:30:30 -07:00
Brad Fitzpatrick
abc247c34d
search: add LocationConstraint tests, make Any work
...
Change-Id: I1a13f0cc7333bb209edcd7f28184a10efeee544d
2014-06-15 13:57:13 -07:00
Brad Fitzpatrick
a0caaa3bec
Merge "search: has:location works on images and permanodes"
2014-06-12 04:32:48 +00:00
Steven L. Speek
9d5218c063
search: has:location works on images and permanodes
...
fixes issue 457
Change-Id: I0279c2d294706a2347039fd30a6c982a72455920
2014-06-15 18:53:44 +02:00
mpl
a34f9e2669
publisher app
...
http://camlistore.org/issue/365
Change-Id: I281fdcbbe6a2bdf15607e75a21bc93b453f82c85
2014-06-15 00:03:03 +02:00
Steven L. Speek
3688c15e47
search: keywords check their number of arguments
...
Change-Id: I04e8fc4a91c58bc91e3b860d43be840e5359e6e2
2014-05-23 20:03:48 +02:00
Steven L. Speek
db1a4cf6aa
search: Self-documenting atoms
...
Parse errors in the atoms have a position too
Easier to add new search predicates
Change-Id: I9d2e890b9afcfb524aafa8f1e4e1debc683555ac
2014-05-15 00:42:32 +02:00
Brad Fitzpatrick
da86ded96a
Merge "index: Index MusicBrainz album IDs from music files."
2014-05-14 00:02:06 +00:00
Brad Fitzpatrick
b3735123dd
search: fix broken describe tests
2014-05-13 13:46:05 -07:00
Brad Fitzpatrick
bf24666080
search: don't default to describe depth 4 anymore
...
Should no longer be necessary, and actually harmful often.
But this might break something. I can't find anything, though. We'll see.
Change-Id: I2b798a893100031b26251b0de7fa31ea5c4774d8
2014-05-09 20:23:15 -07:00
mpl
4b1fb3d138
Merge "search: sort by creation time"
2014-05-08 17:11:45 +00:00
mpl
2088ce739b
search: sort by creation time
...
Change-Id: I3695d91dde0d42419c62a23f20ba19416c53e5ef
2014-05-08 18:55:53 +02:00
Daniel Erat
aa391ecdd1
index: Index MusicBrainz album IDs from music files.
...
Index "MusicBrainz Album ID" ID3v2 frames as
"musicbrainzalbumid" media tags to facilitate downloading
cover art from coverartarchive.org.
Change-Id: Ie81017dd6f76ec355ee0d1daedfb7180cb70ad59
2014-05-05 20:45:58 -07:00
Brad Fitzpatrick
bf39d55941
search: recursive describe rules
...
Updates https://code.google.com/p/camlistore/issues/detail?id=319
Change-Id: I7ef0a0df28e306eaae969e07d9ccf1e7346316ef
2014-05-04 22:41:24 -04:00
Brad Fitzpatrick
bfd35785ec
search: temporarily hide foursquare.com:venue in results
...
Change-Id: If8d38ae4ba57852574b62991f612df6d59b7bbf5
2014-04-23 11:19:10 -07:00
Brad Fitzpatrick
bf9f69bcfe
search: allow searching by permanode location, not just file location.
...
Allows searching foursquare checkins by location.
Change-Id: Ib33d0b435a9bbc17cb860549b41d119f727197f0
2014-04-23 11:13:41 -07:00
Brad Fitzpatrick
317465375a
Merge.
...
Change-Id: I05f6694a16935d9ef9b293c1be462308b60bfcb7
2014-04-19 13:02:42 -07:00
Brad Fitzpatrick
20eca7aad0
search: new DescribeRule describe support
...
Step towards getting rid of the the integer describe depth API.
Now, after the integer describe depth, all the DescribeRules will also
run to expand things.
Change-Id: I5cfe7e6058be51328e529a2299e13a6a2ba5f869
2014-04-19 12:58:55 -07:00
Brad Fitzpatrick
42cbd03db7
search: remove old, useless warning that misfires
2014-04-18 16:43:39 -07:00
Daniel Erat
82429eeedb
index,search: Return media tags for describe requests.
...
Change-Id: Ie983465554e1dc9f5475753a074e48b363f25013
2014-04-15 21:11:33 -07:00
Aaron Boodman
ccffdb18e7
Generalize search.Handler.Describe to follow anything that looks like a ref within any current permanode claim.
...
Change-Id: Ib4dc686e3f5a3c1618a3308d824bfee91d8dfad5
2014-04-11 22:13:57 -07:00
Brad Fitzpatrick
15e583f6ea
Merge "search: stronger lexer; parse errors contain a position"
2014-04-10 02:32:08 +00:00
Steven L. Speek
d9cd746fc1
search: stronger lexer; parse errors contain a position
...
lexer and parser run concurrently
parser functions simplified
Change-Id: Ie6e47d975b254218509072886e87c120860e7a17
2014-04-06 19:30:47 +02:00
Joshua Gay
30e3d4e7af
query.go: fix to skip over files returning IsNotExist errors on queries for width, height.
...
I am a first time committer and I am using the fix to issue number 402 as a bug to learn to learn how to commit to this process. I am not sure if this is the correct way to fix this bug -- the submitter of the bug believes it is -- so please review my code with scrutiny. Thank you.
Change-Id: I6c56b7866d530e1b1c66c563f201e6d1e13d3fa9
2014-04-03 20:43:19 -04:00
Steven L. Speek
3442076272
search: width and height exact matches simplified
...
corrected some copy paste errors in the expr_test
file
Change-Id: I36467d96c5674cddc34009d36a05c42ddd7e3cc2
2014-03-23 21:18:00 +01:00
Brad Fitzpatrick
bf041c8955
search: escape r.AttrFilter in ClaimsRequest.URLSuffix
...
Change-Id: I90e5a87330dc6ae820f2f5f6e3887a26f341a2b2
2014-03-19 14:59:13 -07:00
Brad Fitzpatrick
0cbfae59e1
Merge "Added AttrFilter to ClaimsRequest"
2014-03-19 21:57:48 +00:00
Hernan Grecco
16d6bbb065
Added AttrFilter to ClaimsRequest
...
This allows server-side filtering of claims by claimtype
Change-Id: I1f5368c17f8f9f59ea0add7df67033447e37bc61
2014-03-19 00:45:33 -03:00
Steven L. Speek
146a42cc51
search: accept 'and', 'or', and parentheses in expressions
...
'and' has precendence over 'or'.
both operators are left associative
parenthesized expressions are evaluated first
Parser refactored, parseAtom split up.
Change-Id: I1f194cc75df49bad9d30d041d689d8ba833076f1
2014-03-18 16:40:44 -07:00
mpl
9cadbcd5bc
publish: use generic queries
...
Use generic queries instead of specialized index queries. This is a step
towards the publisher app, because its client will have to use generic
queries.
Context: http://camlistore.org/issue/365
Change-Id: I2781a345e024174e3bea8511b6cdc6f342d5a7c1
2014-03-18 17:26:29 +01:00
Brad Fitzpatrick
bf6031a397
search: add operator "childrenof:sha1-xxxxx" to find permanode children of a parent
...
Change-Id: I9e756147c70f5230aa843ab215dafe5ed6d80087
2014-03-13 19:02:26 -07:00
Brad Fitzpatrick
bfa412de5d
search: implement some of RelationConstraint (only the "parent" relation)
...
Allows searching for permanodes based on their parent(s).
Change-Id: I949f159edc43d895e1657bd6ae4c983758ac59f2
2014-03-13 18:49:28 -07:00
Brad Fitzpatrick
bf48a198c8
search: add test for camliContentImage describing
...
Test was missing from bf5cc362b5
Change-Id: Ie42bef6f7cff19b69e3bad37f42b8d3a694d9a28
2014-03-10 20:11:32 -07:00
Brad Fitzpatrick
bf5cc362b5
search: also describe camliContentImage
...
Change-Id: I64cd4818dead81f5a0dac0e275994df17b7740ef
2014-03-10 19:53:56 -07:00
Brad Fitzpatrick
bfe5eafb44
search: remove check on negative search limit.
...
It's defined and implemented to mean infinite.
Change-Id: Ia50fd2b101d800ba442b4767ddf1c9bf57ea999f
2014-03-10 19:31:33 -07:00
Brad Fitzpatrick
bf6d91545c
search: remove expr TODO
...
Change-Id: Iea7826f2924ad229585a1ec3921fceb6130e8207
2014-03-08 21:11:03 -08:00
Steven L. Speek
b326c2db11
attribute search
...
Change-Id: I9638ca9ef325076122721c601aade05ce99c0c24
2014-03-08 20:58:42 +01:00