ElasticSearch contextual search

I have a challenge searching similar in context phrases (Cyrylic language) using ElasticSearch. Tried different options specified in docs (ngram, phrase_match etc.), tried splitting strings to tags etc., but results are way different from what we are...
more »

2017-08-10 11:08 (0) Answers

Close the search dialog

I would like to close the search result dialog box Here is the code: <script type="text/javascript"> $(document).ready(function(){ $('.search-box input[type="text"]').on("keyup input", function(){ /* Get input value on cha...
more »

2017-08-10 01:08 (1) Answers

Optimal DB structure for creating user segments

I want to create a segmentation engine and can't seem to figure out the most optimal DB or DB structure to use for the task. Currently I use MySQL as my primary DB, but the segmentation engine is a separate software component and thus can have a diff...
more »

2017-08-09 22:08 (1) Answers

Partial match search of an array (CSV FILE)

I want to have partial search on my CSV file. Here is a sample: order1223445, DemoName1, MyLocal Address 1, R123456789 order12235443, DemoName2, MyLocal Address2 , W123456789 order1223254, DemoName3, MyLocal Address 3, T123456789 I was able to se...
more »

2017-08-09 19:08 (1) Answers

Wordpress - Disable Search Function

I've added the following code to functions.php to disable archived/crawled/url searching on my wordpress site for performance reasons: function disable_search( $query, $error = true ) { if ( is_search() ) { $query->is_search = false; $query->...
more »

2017-08-09 19:08 (1) Answers

mysql multiple word search

i have a mysql table and a search form i am filtering the table acc to the given conditions but my problem is i want to search multiple words from string field could you please help me how to do this : i mean i want to allow it to be written multip...
more »

2017-08-09 11:08 (0) Answers

A* star algorithm open and closed lists

I have looked at the implementation of the problem on the internet and i have a question: whenever you add a node you need to search it in the open list(why it is not enough to search it in the closed list?)? And why do you search it to see if you ca...
more »

2017-08-08 21:08 (1) Answers

Search field displays Many2many id instead of name

I've created a module to connect notes to projects and various other modules. The smart button that links back to the notes has a search context defined so that it displays only the notes associated with that project. The search bar displays the proj...
more »

2017-08-08 20:08 (0) Answers

Search View in Realm Recycler View Android

I have implemented a recycler view in my app to show the list of person in a company. I stored all those information in Realm DB. Now I want to implement search option at the top of the window so that user can search a person by name. I have tried wi...
more »

2017-08-08 15:08 (1) Answers

SearchView stops working when switch tab

I have 3 fragments in a TabLayout as seen here http://imgur.com/a/Z9dTQ Whenever I start the application, it opens the explorer tab, and I can switch to the search tab and the searchview works perfectly. If I switch to explorer and back to search, i...
more »

2017-08-07 16:08 (1) Answers

How to search in mysql?

how to select doctor_id which has ability_id equal 1 and 2 and also 3? ( so the answer is 70) I know that I cant use IN statement doctor_id| ability_id -------- | ------------- 70 | 1 71 | 2 70 | 2 70 | ...
more »

2017-08-07 13:08 (2) Answers

Material UI beta, table with global search

I am using last Material-UI react component library, and try to add global search through the whole table. I try to use regex to global and case sensitive behavior. But I'll catch the error: match is not a function Who knows a better solution ...
more »

2017-08-07 10:08 (1) Answers

2D Greedy Ascent Search Algorithm Clarification

I am doing some remedial work on algorithms as I am taking a graduate course on them in the Fall and was a physics undergrad. Watching this video and at the 38:00 mark he goes over the greedy ascent algorithm for a 2D array. I am confused as he defin...
more »

2017-08-06 06:08 (1) Answers

Sort Mongodb data by price

Goal: I'm trying to find a way to let a user sort rentals by max and min price on the one index page. My problem is the only way I could figure out how to make it work was to create two separate pages specifically for lowprice and highprice. I want ...
more »

2017-08-06 02:08 (1) Answers

MongoDB/PHP: search for string with query

EDIT: I solved it. Just need to use "MongoDB\BSON\Regex". I'm storing books as documents in MongoDB, with the individual pages stored as strings in an array. I'm trying to implement a search page that can take a string and return all documents that ...
more »

2017-08-05 16:08 (1) Answers

Django Full Text Search Not Matching Partial Words

I'm using Django Full Text search to search across multiple fields but have an issue when searching using partial strings. Lets say we have a report object with the name 'Sample Report'. vector = SearchVector('name') + SearchVector('author__usernam...
more »

2017-08-05 01:08 (0) Answers

Linq search text using 'and' operator

I have a one to many relationship in the following tables Products [ProductId, Name(varchar)] Keywords [KeywordId, Keyword(varchar)] KeywordsToProducts[Id, ProductId, KeywordId] Let's say that search text is "blue pro". I need to search for both ...
more »

2017-08-04 23:08 (1) Answers