Code Monkey home page Code Monkey logo

search's Introduction

user perms, including explicit 'show private' for when kelsi/drew are logged in, in case someone is watching

put dates on records where possible

schema:
source (diarybot)
type (post, tags, comment)
created
creator (user)
text
visibleTo: kelsi drewp public
extraPrivate: true for extra click

sources:
photo tags / desc / filename (exact substr only)
comments on anything
blog entries
all plain web pages
moinmoin wiki
phone sms
chat
email
source code (special tokenization)
whatsplayingnext movies
delicious
phone book from openidproxy
maps locs
diarybot

page API:
query autocomplete
query run

just json proxy for elastic that enforces permissions?

/search ? q=some+string & source=photo (Cookie for user)
{
    "hits" : {
	"total" : 2,
	"hits" : [ 
	    {
		"_index" : "twitter",
		"_type" : "tweet",
		"_score" : 1.0, 
		"_source" : { 
		    "user": "kimchy", 
		    "postDate": "2009-11-15T14:12:12", 
		    "message": "Another tweet, will it be indexed?"}}]}}

/complete ? q=some+string & source=photo
{
    "hits" : [
	{
	    html: "some <em>text</em> here",
	    source: "photo"
	},
    ],
    // maybe some top-score match that should be added in the text box
}

POST /index ? source=photo
{ uri: ..., text: ..., title: ..., modified: 2011-04-02T00:00:00-08:00 }
\n more
  
GET /index/latest ? source=photo
{ modified: 2011-04-02T00:00:00-08:00 }

DELETE /index ? source=photo to reset

-----

each data source can receive a 'reindex' command which may DELETE its
indices, may fetch /index/latest, and then makes POSTS to /index with
its docs.

might be nice for the source to apply a version on the index (or each
of the docs inside?) and get that later, to know if it has a new
version of the docs to submit. 

search's People

Contributors

drewp avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.