Questions tagged [boolean-search]
24 questions
26
votes
5 answers
JavaScript Boolean Search Query Builder Interface Library?
Are there any (good/usable/not ugly) JavaScript/interface libraries for managing the creation of custom boolean style queries, similar to the Google Analytics Advanced Segment interface?
Basically, a dynamic interface for query building that can be…

Yahel
- 37,023
- 22
- 103
- 153
7
votes
3 answers
Python Query Processing and Boolean Search
I have an inverted index (as a dictionary) and I want to take a boolean search query as an input to process it and produce a result.
The inverted index is like this:
{
Test : { FileName1: [213, 1889, 27564], FileName2: [133, 9992866, 27272781,…

Muenze
- 73
- 1
- 6
6
votes
1 answer
Is there a good PHP library available to parse boolean search operators to MySQL fulltext operators?
We have been using MySQL Fulltext search for several years now, but the requirements have changed. We want to parse the AND/OR/NOT parameters to the form that MySQL does understand. I've written a unit test and it became clear that this is quite…

dbroeks
- 180
- 1
- 9
4
votes
1 answer
Sqlite query to get search word with adjacent words too
I would like to return the searched word including adjacent words which appear before and after the searched word using a query in SQLite. Is it possible to do this? Or should I attempt with another way?
E.g. for the below sentence (using the…

Niks
- 647
- 5
- 16
3
votes
1 answer
Laravel MySQL Search. Allowing users to do custom Boolean Search
I have this new requirement from client for an employee management project I am doing to allow their users to do custom boolean search.
basically allow them to use: AND, OR, NOT, brackets and quotes.
what is the best way to implement this? i…

RayzorMamon
- 174
- 1
- 13
2
votes
1 answer
ElasticSearch bool search using array
I would like to be able to exclude a number of nodes in my ElasticSearch query. Currently this code is working perfectly, but it will only exclude two nodes ($nodeId1 and $nodeId2).
How would I change this query so I can use an array which would…

Andy Bajka
- 169
- 2
- 21
1
vote
1 answer
Bitwise operation on a dynamic data structure
I am implementing a simple document indexer for information retrieval. Now I need to implement an incidence matrix, that should be able to be extended dynamically (not satisfied with just a static array or smth).
And to make boolean search possible…

Capy Maths
- 79
- 6
1
vote
0 answers
LinkedIn boolean search param 'geoUrn'
I'm trying to build boolean search query from my app. Code worked fine before, but now there are problems with the location parameter.
my old code generates this string (it worked well…

Yurii Muzyka
- 11
- 1
1
vote
1 answer
Can a JavaScript variable declaration/initialization use a boolean type conditional?
JavaScript novice here. I ran across the following code in the solution to an exercise. I'm not sure what it is doing:
var noStepBack = sequence[i-1] && sequence[i-1] >= sequence[i+1];
var noStepFoward = sequence[i+2] && sequence[i] >=…

Saint Razz
- 53
- 1
- 7
1
vote
0 answers
how to do Boolean grouping search?
How to do Boolean grouping search in ruby on rails with dynamic values?
Can anyone give me sample example or reference link for Boolean grouping search.
Example:
(quick OR brown) AND fox
quick OR brown should be executed first and that result…

user7348784
- 83
- 9
1
vote
1 answer
MYSQL Boolean search using table data in same statement
I am looking for the most efficient way to do the following.
I have "table1" with the following columns,
ID
SavedSearch
Price
NewLowerPrice
what i need to do is select id and price from table 1, and flag new lower price if the boolean search against…

mscard02
- 315
- 4
- 15
1
vote
0 answers
MySQL match against Boolean Mode search - apostrophe
I'm using a match against query in boolean mode to create a search feature.
The search works, and returns results how I would expect them to, except that there is one problem with words with apostrophes in them.
If there is a word saved on the…

George
- 280
- 3
- 10
0
votes
2 answers
Stringed Boolean Search or Filter in Django
I have a user model with first_name and last_name in it.
class User(AbstractUser):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
address = models.ForeginKey(Address, on_delete=models.CASECAD,…

FightWithCode
- 2,190
- 1
- 13
- 24
0
votes
1 answer
`~` (tilde) operator in Boolean Full-Text Search in MySQL is not behaving as stated in MySQL developer website
I have created the following table fruits -
CREATE TABLE `fruits` (
`id` tinyint unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `ft_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT…

Payel Senapati
- 1,134
- 1
- 11
- 27
0
votes
3 answers
when I press the button it change davyd to Ace, and Ace to Davyd
at the moment when I run the code below - I press the button it changes from Davyd to Aces , and Ace to davyd. Now how do I make the button change from Davyd to Ace to Walter to Juan?