phrase

Searching phrases in Lucene

Could somebody point me to an example how to search for phrases with Lucene.net? Let's say I have in my index a document with field "name", value "Jon Skeet". Now I want to be able to find that document when searching for "jon skeet". ...

How to extract phrases and then words in a string of text?

I have a search method that takes in a user-entered string, splits it at each space character and then proceeds to find matches based on the list of separated terms: string[] terms = searchTerms.ToLower().Trim().Split( ' ' ); Now I have been given a further requirement: to be able to search for phrases via double quote delimiters a la...

Regex to extract the search term in search phrase

I have the following search phrase and I need to extract ABC XYZ Mobile Accessories Samsung 250 whenever they occur in the string in any order. The application is C# .Net. Search Phrase __________________________________________________________ ABC XYZ ABC XYZ category:"Mobile Accessories" category:"Mobile Accessories" ABC XYZ A...

how do I get month from date in mysql

I want to be able to fetch results from mysql with a statement like this: SELECT * FROM table WHERE amount > 1000 But I want to fetch the result constrained to a certain a month and year (based on input from user)... I was trying like this: SELECT * FROM table WHERE amount > 1000 AND dateStart = MONTH('$m') ...$m...

Delphi Phrase Count / Keyword Density

Does anyone know how to or have some code on counting the number of unique phrases in a document? (Single word, two word phrases, three word phrases). Thanks Example of what I'm looking for: What I mean is I have a text document, and i need to see what the most popular word phrases are. Example text I took the car to the car wash....

How to target specific letter/word with jquery?

As a mere example, I want to apply the class "fancy" to all occurrences of the sign "&amp;" in the document. The CSS: .fancy { font-style: italic; } So a text that looks like this: Ben &amp; Jerry's would be manipulated by jquery to this: Ben <span class="fancy">&amp;</span> Jerry's Is there a function to target specific words/...

How to search phrase queries in inverted index structure?

If we want to search a query like this "t1 t2 t3" (t1,t2 ,t3 must be queued) in an inverted index structure , which ways should we do ? 1-First we search the "t1" term and find all documents that contains "t1" , then do this work for "t2" and then "t3" . Then find documents that positions of "t1" , "t2" and "t3" are next to each other ...

Help understanding weird Bing phrase query behavior

I've noticed in searching Bing that I sometimes don't get the results I'm expecting. For example, the search "Singapore Bao" "29 Bendeemer Road" "330029" returns 10 results, 2 pages that contains all of the above phrase Looks like Bing does some phrase manipulation. If I only want to see those two results the advanced search page indi...