Questions tagged [freetext]

FREETEXT is an SQL text-search predicate that uses stemming (e.g. -ing, -ly) and a thesaurus to search for the given string.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
44 views

How do I get synonyms in SQL Server FreeTextTable() searches?

I did a search for "GLBT" where the text in the DB has "LGBT+" in it. It did not return any rows. Same for doing a search on "cars" when the DB has "vehicles" ...
David Thielen's user avatar
1 vote
0 answers
35 views

How do I get the FreeTextTable.Rank via Entity Framework

I'm able to get a list of records using FreeTextTable in Entity Framework as follows: var EventsSqlWhere = $"SELECT top 200 * FROM FreeTextTable(Events, *, {0}, 200) as t INNER JOIN Events u on u....
David Thielen's user avatar
0 votes
1 answer
52 views

Is there an EF.Functions.ContainsTable() equivalent?

There's an EF.Functions.Contains() and EF.Functions.FreeText(). But I can't find a ContainsTable() or FreeTextTable(). Is the only way to do those to use FromSqlInterpolated()? And if so, is this the ...
David Thielen's user avatar
1 vote
1 answer
58 views

C# Console.Read, prevent use of special characters by user

Is there a way to limit free-text when using Console.ReadLine(); to prevent the use of special characters such as / , % ,$ , #. Currently I allow all characters and then use a .Replace("[special ...
Joshua Jaynes's user avatar
0 votes
0 answers
46 views

SQL Server : Freetext search with And Operator

Project table Name columns contains this data: USA Russia England Canada Canada Query: SELECT name FROM project WHERE FREETEXT(name, '"USA Canada"') Result: the query returns both rows. ...
hsn's user avatar
  • 31
0 votes
1 answer
66 views

How to split a dataframe row into several rows if they're above a certain word count?

I have a dataframe that is made up of two columns. One column has a numbered value, and the next column is free text. One entry has a prodigious number of words (2k +), and that is making it hard to ...
Alokin's user avatar
  • 463
0 votes
1 answer
68 views

SQL Server FREETEXT search not returning any results

For some reason, I do not get a result on the SQL Server Freetext search term with the following code. Both tables are fulltext indexed (in a catalog), and the query somehow works, but as mentioned, I ...
Bernhard Sailer's user avatar
1 vote
0 answers
243 views

JIRA/JQL exclude by specific comment?

I can easily find issues with a specific comment which might end up as 6 out of 30 items. But I want to exclude each item containing a specific text string to get the remaining items. (I'm NOT admin ...
Johan Grimm's user avatar
2 votes
1 answer
233 views

issue with MSSQL fulltext search

original table contains json, but i've stripped it down to the table below: id json 1 "name":"one.it.two" 2 "name": "one.it.two" difference between the two ...
hmad's user avatar
  • 156
0 votes
0 answers
97 views

when i write MS SQL full text search query for return all matches, then it give me not correct output

this is my query:- select * from dbo.zones where freetext(name, 'test'); select * from dbo.zones where contains(name, 'formsof(INFLECTIONAL, test)'); this give me result of- test, testing, tested ...
Ranveer's user avatar
  • 11
0 votes
1 answer
485 views

Using SQL to Return Entire Paragraph if a word is found

I would like to return all the words surrounding the search term in a varbinary text enabled column. For example, if the word crisis is found, I would like to return the paragraph or at least 10 words ...
David Olsen's user avatar
1 vote
0 answers
598 views

EF Core 5: FreeText Failed to convert parameter value from a String to a Byte[] on a Full-Text indexed Byte[] column

I have the following entity with a property Content of type byte[]: public class Post { [Column(TypeName = "varbinary(max)")] [Required] public byte[] Content { get; set; } public ...
Ali Kleit's user avatar
  • 3,189
1 vote
1 answer
2k views

Freetext search multi-columns in c # (Linq)

Is there the possibility by using EF.Functions.FreeText to search on multiple columns? The function accepts as input parameters: the column in which to perform the search and the string to search for, ...
Riccardo Pezzolati's user avatar
0 votes
1 answer
2k views

Why we need FREETEXT if we already have CONTAINS?

Why we need FREETEXT if we already have CONTAINS? in SQL Server can you you give where exactly we can make use of. Syntax for using FREETEXT is exactly the same as CONTAINS , so When you need to do ...
Ramakrishna.p's user avatar
0 votes
1 answer
579 views

SQL Server FullTextSearch FREETEXT does not return expected results

I have the following sql server query SELECT * FROM [dbo].Client WHERE FullName LIKE '%Lind%' Which returns the following row: When I run the following Full Text Search query that row is not ...
pantonis's user avatar
  • 5,779
0 votes
1 answer
126 views

Email ID filter using freetext sql server

I cannot able to filter email from table using 'freetext' in sql server. For ex: select * from abc where column = '[email protected]' is getting all data having @ and .com think so.
Balajisriram S's user avatar
1 vote
1 answer
460 views

SQL Server Freetext Varbinary returns nothing and Conversion VARBINARY -> VARCHAR Not working

Hey I've a few issues with my solution and I can't figure it out Below is my creation table CREATE TABLE FreeTextSearch ( [ID] BIGINT NOT NULL IDENTITY(1,1), [Content] VARBINARY(MAX) NOT ...
VoidEssy's user avatar
1 vote
0 answers
309 views

Using Oracle Text Multicolumn Datastore Can I Weight The Columns Differently

A business requirement dictates that for implementing a full text search solution, that certain fields being searched have more weight than others. Although I have found that you can add weight to the ...
Eric Huddle's user avatar
0 votes
1 answer
300 views

Apply HTML filter to FREETEXT SQL Query on nvarchar(max) column

So I'm converting an existing system to support Freetext search and I've a tiny issue. The column CONTENT is type of nvarchar(max) and stores HTML, which means cases like <p><b>f</b>...
VoidEssy's user avatar
0 votes
2 answers
904 views

Using SQL CONTAINS with multiple words inside a variable

I'm trying to use SQL CONTAINS function with variables. Usually, I can use CONTAINS the following way: WHERE CONTAINS(tablename, '"some text to search for"') However, I can't figure out how to ...
Robbie Dee's user avatar
1 vote
1 answer
487 views

Setting transparent color as strokeColor in Acrobat JS API results in black border

my problem is that when I try to set transparent as strokeColor for FreeText annotation when adding one the resulting annotations has black border. I try to code it like this: this.addAnnot({ type: "...
eLGi's user avatar
  • 80
0 votes
0 answers
59 views

What is the use of "\+" keyword while performing freetext in sql-server?

One of our senior developers uses "+" while performing a freetext search. I am not able to understand the use of it. I have tried to remove the condition where he used "+" keyword but here was no ...
AVINASH KUMAR's user avatar
2 votes
4 answers
551 views

SQL Server 2012 Full Text Search match results

I would like to know if there is a way to get the words that were matched from a full-text search using FREETEXT. For example: SELECT * FROM table WHERE FREETEXT(column_name, 'search term') I'd ...
Tyler Bristol's user avatar
1 vote
0 answers
48 views

I have question about an example code in Microsoft Docs "FREETEXT (Transact SQL)"

I want to use Freetext statement for search a phrase in SQL Server 2016 not separated words base on this sample code in Microsoft Docs.(https://learn.microsoft.com/en-us/sql/t-sql/queries/freetext-...
Hamid Reza Moein's user avatar
0 votes
1 answer
838 views

Syntax error near ',' in the full-text search condition ','

This is my stored procedure. When I pass "," in @BusinessName I am getting error: Syntax error near ',' in the full-text search condition ','. How do I resolve this error? ALTER PROCEDURE [dbo].[...
Happy Singh's user avatar
0 votes
1 answer
92 views

SQL Server FTS indexing correct keywords but not returning results with those keywords

I've created a FTS catalog which indexes the Title column of a table called Articles. The word breaker language is set to Dutch. The article title is "Contactgegevens Wijkteams 2019". My search term ...
Jacques's user avatar
  • 6,935
0 votes
0 answers
97 views

How to securely store free text users answers

We are creating 3 different questionnaires in our iOS and Android apps. The users have to answer questions with free text. Most of the information is medical sensitive data. After completing the ...
Dimitar Kovachev's user avatar
1 vote
2 answers
1k views

EF Core freetext with child entity

EF Core 2.1 has added support for FREETEXT, as also discussed in How to use FreeText in EF core 2.1. I have a different problem, however, using EF Core 2.2: Does EF Core's FREETEXT support child ...
Rogier van het Schip's user avatar
1 vote
1 answer
362 views

SQL Server Full-Text search Empty catalog

I'm trying to get a full-text search running on SQL Server in Azure. My data is in a varbinary(max) with all columns containing data. The data is strings of html. The SearchableData column is ...
Herlin's user avatar
  • 353
1 vote
0 answers
92 views

Fuzzy Search Logic

I am working on a search function in my PHP webpage, whereby users can enter keywords to search for. Problem is I need a fuzzy search logic that can capture keywords of different permutations and ...
Angel Lim's user avatar
1 vote
3 answers
2k views

Using CONTAINS to find items IN a table

I'm trying to write a SP that will allow users to search on multiple name strings, but supports LIKE functionality. For example, the user's input might be a string 'Scorsese, Kaurismaki, Tarkovsky'. ...
Julian Drago's user avatar
16 votes
1 answer
9k views

How to use FreeText in EF core 2.1

I see that Entity Framework core 2.1 has a new feature to use FREETEXT, but I am not sure how to use it as there are no examples that I can find online. https://github.com/aspnet/EntityFrameworkCore/...
chobo2's user avatar
  • 83.7k
0 votes
1 answer
242 views

Using a Registered Function in Nhibernate ICriteria

I have som trouble using fulltext search in NHibernate ICriteria I have registered freetext and contains as below: public class CMSSQLDialect : MsSql2008Dialect { public CMSSQLDialect() { ...
user2435866's user avatar
1 vote
0 answers
135 views

SQL Fulltext index seems to ignore subscript/superscript numbers

I have a fulltext index on a binary field that stores superscript and subscript numbers. When searching the field, the same results are returned whether you add super/sub script numbers to your ...
Jean-Luc Chapotot's user avatar
1 vote
1 answer
778 views

SQL Server full text search on column with alias

I am using full-text search, its working fine on a direct column of table but not on a derived/aliased column. SELECT ExpectationId ,ExpectationName ,( CASE WHEN ...
Ali Shahzad's user avatar
  • 5,213
1 vote
1 answer
6k views

How to search for similar words in SQL Server

I am using CONTAINS and FREETEXT on SQL query to search for text in big text fields. What I noticed that the search returns result when the exact word match, but what if I want to search for similar ...
Ahmed Ali's user avatar
  • 127
0 votes
0 answers
37 views

Populating a table with the results of a FREETEXT search

I am new to text searching etc and would appreciate any help or guidance with the following problem. I have set up a Full-Text catalog with specific search words (about 500). This is an example of ...
Wayne Wood's user avatar
-1 votes
1 answer
133 views

SQL Server 2008 FREETEXT Search stopped working

I recently had an issue where a FREETEXT search stopped working in my stored procedure. SELECT ShowID FROM Table WHERE FREETEXT(Category, @Category) This has been working for months until today. I ...
Dwight's user avatar
  • 93
0 votes
1 answer
30 views

Optional regexp group in freetext

I have two kind of text messages - both have a uniformed message code at the beginning but there might be a second match enclosed in ' characters I would need to extract if it is there. M0123 Example ...
Joel's user avatar
  • 484
0 votes
1 answer
507 views

SQL Server search multiple columns with FREETEXTABLE

GOAL: to return a result based on a search of 3 different columns, each with their own search string value and order by RANK, if possible. RULES: Allow any column to be searched Results must contain ...
RoLYroLLs's user avatar
  • 3,123
3 votes
1 answer
1k views

Netsuite SQL Expressions

I need to use Netsute SQL expressions on a custom field. There are certain criteria that the field needs to follow; If the cell contains only 1 (or none) capital letters, return the first 2 ...
Simon G's user avatar
  • 217
2 votes
1 answer
2k views

SQL Server 2016 Full-Text Index suddenly stops working

We are successfully using Full-Text Indexing, but multiple times a week it suddenly stops working. Going to the affected table and disabling the Full-Text Index, then enabling it again brings it back ...
Bob's user avatar
  • 65
0 votes
1 answer
90 views

AWS - SQL Server Thesaurus

Is it possible to edit the thesaurus XML file for SQL Server on AWS RDS ? I tried to find solutions but was unable to come co any conclusion. Any help ?
PAG's user avatar
  • 31
0 votes
0 answers
34 views

free text search not giving correct output with two or more dots with contains

I have the code below : declare @searchText varchAr(150)='"*[email protected]*"' select * from account a WHERE CONTAINS ((aEmail,), @searchText) it is not showing any result .
Prashant Choudhary's user avatar
0 votes
2 answers
3k views

SQL script to extract country from free text field

I'm trying to create a SQL UDF or statement to parse a free text field and find the country name from it, but I'm unable to do so successfully. To give you guys the full context, I've got a ...
Chipmunk_da's user avatar
3 votes
1 answer
1k views

SQL Server FREETEXTTABLE not returning result

I have used SQL Server FREETEXTTABLE function to search in a table column based on the user entered words like a search engine and return best matching rows. Table column will contain many questions ...
Hiren Khatri's user avatar
0 votes
1 answer
83 views

Subset specific text from a free-text character variable in R when the position is random

I have a dataframe which looks a little like uniqueID <- sample(1:10, 3, replace=F) faultDetails <- c("fault is blah blah blah and serial is F1AB3CDE123", "Serial No: f1ds6hrc813, fault is blah ...
user avatar
1 vote
1 answer
333 views

Extracting numbers from string in R based on a specific criteria

I'm trying to extract some numbers from a string (comments) based on a specific criteria. The numbers I would like to extract directly follow a date in 24 hour format and always contain a decimal ...
sharkey32's user avatar
0 votes
0 answers
85 views

Resizing a freetext annotation in pdfnet converts specials characters into unicode (PdfNet)

I'm using the toolmode e_annot_edit to resize my freetext annotations. But when i make the annotation smaller/bigger, some characters like 'é' convert into '\U00E9. Is there any way to fix this? I ...
DennisVA's user avatar
  • 2,078
0 votes
0 answers
504 views

Font and Background Color of iText FreeText annotation

This is how i create a free text annotation in iText PdfAnnotation stamp = PdfAnnotation.createFreeText(stamper.getWriter(), rectangleObject, "text String", pdfAppearance); I cannot set a ...
chitgoks's user avatar
  • 285