Skip to content

sangheestyle/bisonlucene

Repository files navigation

bisonlucene

A simple prototype for indexing and searching based on PyLucene

##Object##

  • Indexing files stored json format contents
  • Searching term and phrase for description only (now)

##Requirement##

##Example## You can watch a short demo video before do follwoing example.

###Indexing###

$ python IndexFiles [PathToFolderIncludingJsonFiles]

###Searching###

$ python SearchFiles,py
lucene 4.5.0

Hit enter with no input to quit.
Query:[InputHere]

Please refer Apache Lucene Query parser syntax to compose your own query set.

###Searching examples### A single term searches

title:"camera"
description:"camera"
description:camera

A parse searches

description:"camera location"
description:"location camera"

Fields searches: Lucene supports fielded data.

description:"camera location" AND title:"CA"

Boolean operators searches

description:"camera" AND description:"location"
description:"camera" OR description:"location"

Proximity Searches: Lucene supports finding words are a within a specific distance away. To do a proximity search use the tilde, "~" (e.g. ~5 means within 5 words)

description:"camera location"~5

Regular Expression Searches: Lucene supports regular expression searches matching a pattern between forward slashes "/"

description:/[mb]oat/

##Reference##

About

a simple prototype for indexing and searching based on PyLucene

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages