Questions tagged [xapian]

Open Source Search Engine Library with bindings to allow use from Perl, Python, PHP, Java, Tcl, C#, Ruby and Lua

Xapian is a toolkit which allows developers to add advanced indexing and search facilities to their applications. It supports the Probabilistic Information Retrieval model and supports a rich set of boolean query operators.

105 questions
1
vote
1 answer

Django + Haystack how to do this search

I'm new to Haystack and to the search world so I didn't know how to ask this question. What I want to achieve is the following. Having a search query like: one two I would like to get returned any content like: This one one two two one something…
Esteban Feldman
  • 3,288
  • 6
  • 32
  • 31
1
vote
2 answers

How to deal with xapian php exceptions

Help with using the xapian php wrapper. I have a couple of custom exception handlers for different categories of errors (I'm thinking of seperating them out more). Xapian handles errors by throwing standard Exception objects. I would like to use a…
menko
  • 340
  • 4
  • 12
1
vote
1 answer

I've installed xapian via macports, so why does this python app tell me that xapian needs to be installed?

I'm trying to run a python application on my system. When I try to execute it I get a traceback which ends with something saying I need to install Xapian. So I went ahead an installed xapian-core and xapian-bindings using macports. Then I tried to…
Nicolas Holzapfel
  • 235
  • 1
  • 2
  • 11
1
vote
1 answer

How to make django test framework read from live database?

I realize there's a similar question here, but this one has a different approach: I have a django app that does queries over data indexed with djapian ; I'd like to write unit tests for this app's search component, and, obviously, I'd need the…
lfborjas
  • 296
  • 3
  • 15
1
vote
2 answers

Missing Xapian library in Doxygen build

I am attempting to build Doxygen using VS2013. I have downloaded the project from GitHub and I have installed Flex and Bison. When I attempt to build, it fails due to reference to Xapian header files that it cannot find/open. Xapian was not…
Neil Pittman
  • 359
  • 1
  • 3
  • 12
1
vote
0 answers

Djapian: single-letter query plus a wildcard causes an error

I've been experimenting with an autocomplete function that starts searching on the first letter a user types. Currently for autocompletion we append a wildcard (*) character to the end of the search term so that we can match terms beginning with…
benwad
  • 6,414
  • 10
  • 59
  • 93
1
vote
1 answer

Django Haystack Xapian: Default AND Chaining, among others, not working

Here is my haystack config: HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'xapian_backend.XapianEngine', 'PATH': os.path.join(BASE_DIR, 'xapian_index'), 'INCLUDE_SPELLING': True, 'BATCH_SIZE': 100, }, } I'm…
belteshazzar
  • 2,163
  • 2
  • 21
  • 30
1
vote
2 answers

Xapian filtering with whitespace

How to filter search result with query with has white space. #include #include #include struct document{ std::string title; std::string content; std::string url; }; void indexData(document d) { try { …
Ramesh
  • 2,295
  • 5
  • 35
  • 64
1
vote
1 answer

DataBaseLock error with Django, Xapian and Haystack

I'm indexing a model with xapian/haystack. When i test it on my local machine everything works just fine, but when i try to save a model on the server Xapian throws a DatabaseLockError Exception Type: DatabaseLockError Exception Location:…
user187676
1
vote
0 answers

What is the minimal ammount of code I need for using django-cms-search 0.2.6?

I want to use django-cms-search in my project and have installed it together with xapian and the xapian_backend. In my settings file, I have defined HAYSTACK_SEARCH_ENGINE, HAYSTACK_SITECONF and HAYSTACK_XAPIAN_PATH (because the django system is a…
Philipp Zedler
  • 1,660
  • 1
  • 17
  • 36
1
vote
2 answers

Djapian - filtering results

I use Djapian to search for object by keywords, but I want to be able to filter results. It would be nice to use Django's QuerySet API for this, for example: if query.strip(): results = Model.indexer.search(query).prefetch() else: results =…
hmp
  • 941
  • 3
  • 10
  • 27
1
vote
1 answer

adding xapian library in cmake

I am trying to add xapian search engine library in cmake file project(search) cmake_minimum_required(VERSION 2.8) find_package(Xapian REQUIRED) aux_source_directory(. SRC_LIST) target_link_libraries(${PROJECT_NAME} …
Ramesh
  • 2,295
  • 5
  • 35
  • 64
1
vote
1 answer

How can I sort by relevance and value at same time using Xapian? In PHP

I have an index in Xapian, and every doc have a value (dinstinct) that I want to use at sort. The problem is that when I use: $enquire->set_sort_by_value_then_relevance(1); Xapian will sort only by value or if I use:…
Daniel Dudas
  • 2,972
  • 3
  • 27
  • 39
1
vote
1 answer

How to solve xapian-core issues in Ubuntu 11.10

I am unable to install the gem xapian-core in Ubuntu 11.10 (GNU/Linux 3.0.0-16-virtual i686) with gcc 4.6.1 My ruby version is 1.9.2 and rails 3.2.3. It is saying that C compiler cannot create executables. See config.log for more details. I…
sam
  • 19
  • 1
  • 5
1
vote
1 answer

How to match exact phrase using xapian and python?

This is my code: db = xapian.Database(path/to/database) enquire = xapian.Enquire stemmer = xapian.Stem() query_parser =…
martincho
  • 4,517
  • 7
  • 32
  • 42