Questions tagged [booleanquery]

This tag is used in information retrieval scenario when you write a query with multiple rules combined with bolean conjunctive predicates.

This tag is used in information retrieval scenario when you write a query with multiple logical rules combined with bolean conjunctive predicates, e.g., AND, OR, NOT.

131 questions
0
votes
2 answers

Oracle SQL - CASE syntax

Assume this query which functions fine: SELECT first_name, consultant_id, CASE consultant_id WHEN 1 THEN 'First Consultant' WHEN 2 THEN 'Second Consultant' END FROM consultant ORDER BY first_name; Why couldn't I add another…
Conner M.
  • 1,954
  • 3
  • 19
  • 29
0
votes
0 answers

Lucene BooleanQuery OR output not as wanted

i have an index with some documents, the 593 documents that contains the word computer and 51 documents that contains the word science and 596 documents that contains the words computer OR science, i wanna outpout those 596 docs here's my…
The Frag
  • 43
  • 6
0
votes
1 answer

Copy Object from one array to the "beginning" of another array using Insert Algorithm

I've been assigned the task of developing a simple Java program based on following: Write an algorithm to search for reserved book copies, from a list (array) of books using Linear Search, and then store them at the beginning of a newly created…
Emanuel
  • 37
  • 8
0
votes
1 answer

pandas: output index value when values in a column become greater than last value in each column

Full question- Search each column in a DataFrame to determine when the first instance of a value greater than a value stored in the last row of each column in the DataFrame and output the index Ex. of df.head(): Well A1 A2…
schnick
  • 25
  • 6
0
votes
3 answers

Boolean Simplification - Q=A.B.(~B+C)+B.C+B

I've been struggling with boolean simplification in class, and took it to practice some more at home. I found a list of questions, but they don't have any answers or workings. This one I'm stuck on, if you could answer clearly showing each step I'd…
J. McGill
  • 9
  • 3
0
votes
1 answer

Liferay: BooleanQuery MUST NOT some values

I want to create a search with multiple values, for example: I want to search in database all Articles that do not contain the category: Car Bus motorcycle truck On database exist articles with a category 'Car' foe example but not with category…
user7332139
0
votes
4 answers

Boolean conditions in SQL where clause

I wanted to write an sql query to fetch data as: 1. when param = 'all' it should list data across the table 2. when param = 'yes' it should list data where invoicenumber is not empty. 3. when param = 'no' it should list data where invoicenumber is…
Abbas
  • 4,948
  • 31
  • 95
  • 161
0
votes
1 answer

BooleanQuery between multiple fields

I have three fields say F1, F2, F3. I want to find all the documents which have all three fields values as null. Can I achieve this by using BooleanQuery? If I use MUST_NOT clause for all three fields then It will not return the documents which have…
Apr444
  • 53
  • 1
  • 9
0
votes
1 answer

Lucene.Net: How can I convert MultiFiledQueryParser to BooleanQuery?

This is my current code that does a MultiField Query ''# Variables used by Lucene Dim reader As IndexReader = IndexReader.Open(luceneDirectory, True) Dim searcher As IndexSearcher = New IndexSearcher(reader) Dim parser…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
0
votes
1 answer

Lucene BooleanQuery wrong result

I created a Lucene RAMDirectory to collect data from different sources and make them quickly searchable. I spent many hours to understand the different analyzers and index strategies, but in some cases the query result is not the expected. Here is a…
Dimnox
  • 441
  • 1
  • 6
  • 13
0
votes
1 answer

Elasticsearch different results with boolean queries

I have two queries that I think, should return same amount of results. First is a "must" with query_string on 2 fields. E.g. { "query": { "nested": { "path": "app.pub", "query": { "bool": { "must": [ …
0
votes
0 answers

Boolean query equals works as like

I'm trying to prepare some boolean query for SOLR engine to find some docs with specific locality field. Results that I get seems to be very weird. I cannot give exactly the same code I use because of security policy in my company but trying to…
0
votes
0 answers

index() requires QueryKeyExpression with CollectionMapping that has non-null list order column

I have two entities, One saves the basic case related data and other saves all the updates for a certain case. @Entity(name = "Case") @EntityListeners(AuditingEntityListener.class) @NamedQueries({ public class Case extends AbstractAuditableEntity…
Saba
  • 123
  • 2
  • 14
0
votes
1 answer

filtering the boolean query results in lucene

I have the solr json response as follows, { "stateOrProvinceId":"TN", "entityType":"hotelInfo", "chainCode":"SM", "marketerName":"InnLink", "propertyId":"4380", "marketerId":"INNLINK", "propertyStatus":"Active", …
Raghavan
  • 401
  • 6
  • 21
0
votes
1 answer

Manipulate Nested Boolean Query String in Python

I have string boolean queries like this queryString= """And( OR(abc,xyz,wxy), AND(AND(xyz,wxy),xzy), XOR(x1,y1, AND(xy,zz)) )""" At current it is hard for…
Watt
  • 3,118
  • 14
  • 54
  • 85
1 2 3
8 9