TSQL - Full Text Search / Index / Catalog

Aug 20, 2007

Hi guys,
What should I do in order to make a Full Text Index / Catalog and then using the Contain predicate?
Thanks in advance,
Aldo.

View 3 Replies


ADVERTISEMENT

MSDE And Full Text Search Catalog

Jan 5, 2005

Hi there,
First off: I know that MSDE can't handle Full Text Catalogs.

Now I'd like to know if someone knows about a product or method which I could use that would give me the same result and work with MSDE.

The reason I ask is the following:
We have developed an Intranet application based upon MS Sharepoint Portal Server 2003 for Document Management purposes. Every Document has about 20 customized Properties which can be set. We do have an extensive interface for searching these documents
Now every user can have his "Favorite Documents" in a personal location.
What we are doing now is a "Local" version of this application. It will not allow documents to be modifed and will export the Users Favorites to his personal Computer.
For the moment we store everything (including the documents themselves) in a local MSDE Database.
Now we were recently asked to allow the user to search these local documents. Or at least search for documents with specific properties(i.e. no content indexing needed)

However I don't know how to go about this.

The structure I have for the DB is following

tblFiles
FileGUID FileName
1 Doc1
2 Doc2

tblProperties
PropertyGUID PropertyName
1 Name
2 Author

tblFileProperties
FileGUID PropertyGUID Value
1 1 Test Document.doc
1 2 John Smith
2 1 Dcoument for testing.xls
2 2 John Doe

Now you get the idea

We want to user to be able to specify search criteria for multiple properties
e.g. return every Document where Author Like 'John' and Name Like 'Document'
Preferably we should also be able to use wildcars. But that is not abolutely necessary for the moment.

Now I guess to achieve this I'd need a full text Search Catalog on tblFileProperties.Value, but I'm not even sure about that.

Any help please

RizziMan

View 2 Replies View Related

Can Not Create A Full Text Catalog Or Index

Nov 2, 2007

When I try to create a full-text catalog on my local database I get an error that I can not find support information for.

Here is the command I run :CREATE FULLTEXT CATALOG asset_search_values_catalog on FILEGROUP ftFileGroup IN PATH 'C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData' as default

Here is the error message I get:
Msg 7689, Level 16, State 1, Line 1
Execution of a full-text operation failed. 'No such interface supported'


I check the properties of my database and Full-text is enabled.

I am running SQL Server 2005, on an XP Pro, SP2.
I had originially installed in side by side with SQL Server 2000.

I even tried uninstalling SQL Server 2005 (to try a re-install), I could not even uninstall the database.

What should I do.

View 1 Replies View Related

Shrink The Full Text Index Catalog

May 9, 2007

We are running a full text index on a single field in one table. The catalogs have grown to over 53GB. Is there a way to shrink these down?

Thanks,

Scott

View 1 Replies View Related

Problem With Hyphen In Full Text Catalog Search

Jul 23, 2005

Hi All,we have a problem with the Full Text Catalog Search.We use the following SQL Statement for matching companies from a table:select company, lastname, firstname, pkcustomers, fkcustomers,location, title, fkFunktionen, TypeOfPositionfrom customerswhere (fkcustomers = 0 or fkcustomers is null)and active = 1and pkCustomers in (select [KEY] from CONTAINSTABLE(Customers, Company,'"*SEARCHTERMS*"'))order by company ascThe search so far is working perfect.Now the problem: There are two companies in the table called "i-fabrik"and "b-wise". There´s no way to find these two companies. I find outthat the search is successful if there are more than three letters infront of the hyphen (for exampe iii-fabrik or bbb-wise). How can thatbe? Why exactly 3 letters?I hope somebody can help me.Best regardsMarkus Weber

View 1 Replies View Related

SQL Server Admin 2014 :: Restoring DB With Full Text Catalog / Index

Aug 6, 2015

I need to restore a SQL 2008 db on SQL 2014 instance with out upgrading the database(changing compatibility level).

This database has full text enabled. I see one full text catalog an 2 full text indexes.

Do I need to worry about anything or can I perform a clean restore from the backup with full text import?

Do I need to rebuild the catalog in this case?

View 1 Replies View Related

MS SQL Full-text Index Search

Jan 16, 2006

First of all I’m new to MS SQL, I did work with mySQL
 
Table name db (real db has 12 columns)
Id         c1                    c2        c3
1          tom                  john      olga
2          tom john           olga      bleee
 
I enabled full text index on all columns
 
Problem when I do search like this:
SELECT * FROM db WHERE CONTAINS(*,'�tom� AND “john�')
 
It will return only one row (id 2) – I understand that the full text search does look only at one column at a time because it did not return row #1
 
Anyway I thought that I can add extra column c4 and when user enters new data it will save data from columns c1, c2, c3 to c4 (varchar(750)) and then I will do search only on c4 – this way it will work the way I want.
 
1)       Is there any better way to do this?
2)      How do I sort results by “rankâ€? with SQL

View 1 Replies View Related

Full Text Search - Index Files

Mar 8, 2008

history.ix, index_a.ix, index_d_1.ix, index_di_1.ix, index_i_2.ix,
index_k_2.ix, index_kl_1.ix, index_klh_2.ix, index_n.ix,
index_r_l.ix, index_sv.ix, index_v.ix, index_v_ix.log, indexlog.dat.

This files are generated durin full text search.
now i have doubts regarding this,
1) Can we referrence this files directly
2) Where it will be located in our system?
3) is it loaded for each Full Text Index we created for the table.
4) How this file are used in Full Text Search.

View 1 Replies View Related

Full-text Index Search Not Returning Expected Results

Apr 11, 2007

Hello,

My full-text search isn't working at all! I have a temporary table with full-text indexing enabled where files are scanned for social security numbers. If it has one, the user will see a message that it believes it's found a SSN and won't upload it. There is only ever one row in this table, as we overwrite the contents upon each upload.

I'm testing this search, and it doesn't work. The table has the following columns:
attachemtId (int) - primary key
fileContent (image) - contents of the file
fileExtension (varchar) - extension of the file (this is always either ".pdf" or ".doc")


I created a .doc file that simply says "ssn", and then run the following query:

SELECT * FROM TempAttachment
WHERE CONTAINS(fileContent,'ssn')


and nothing is returned! I tried the same thing with a .pdf file, and same results.

I'm not sure if this is related, but earlier I had this issue where I had to reset permissions for the directory. I've tried removing the full-text index and adding it again, but that didn't do anything. I also checked error logs on the server, and there were no messages. Any help would be appreciated! Thank you!

View 1 Replies View Related

FullText Search Not Returning Results After Rebuilding Full Text Index

Aug 6, 2012

We have a table that is Full Text Search index enabled on one column.This table has 200 lakhs of rows(20000000) . ContainsTable() function is searching data with in these 200 lakhs of rows(20000000), if any new rows are inserted then the ContainsTable is not going to search in these recent inserted rows.

We observed when we try for a data to search. it is returning the rows till the rows that are inserted date is less than 30th of march 2012. but not searching in the records that are created after April month , if even the data we are searching is available .

TableFulltextItemCount is around 2.2 crores.

Then we done rebuilt the FT catalog Index. then the TableFulltextItemCount became 0.Again we run the containstable query ,but still it is not getting results.

As the no of rows are very more . so i am not able to show the actual rows from which the data is not coming.

the below query gives 2 results that are from actual base table

HTML Code:
select * from g_case_action_log where cas_details like '%235355%' and product_id = 38810

To search for the same above word using FTS,I have used the query as below

HTML Code:
SELECT Distinct top 50 cal.case_id,cal.cas_details From g_case_action_log cal (READUNCOMMITTED)inner join containstable(es.g_case_action_log, cas_details, ' ("235355" OR "<br>235355" OR "235355<br> ") ') as key_tbl on cal.log_id = key_tbl.[key] Where cal.product_id = 38810 ORDER By cal.case_id DESC

I have attached one sql script file for your ref that contains create logic and index schema properties

Why it is not returning results all the time.

View 1 Replies View Related

Full-text Search Does Not Automatically Update Index When CHANGE_TRACKING AUTO

Apr 25, 2007

On Sql Server 2005 Standard if I insert a new row into SomeTable that has a full-text index:



insert SomeTable(keywords)values('this is a test')



and then query:



SELECT * FROM Message WHERE Contains(keywords, ' "test" ');



I get the expected rows all rows that have "test" in the keyword.



On Sql Server 2005 Express new rows are not returned unless I rebuild the catalog.

Is this a known limitation of Express?



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



CREATE TABLE [dbo].[SomeTable](
[key] [int] IDENTITY(1,1) NOT NULL,
[keywords] [nvarchar](255) NOT NULL
CONSTRAINT [PK_SomeTable] PRIMARY KEY CLUSTERED



CREATE FULLTEXT CATALOG ft AS DEFAULT;

CREATE FULLTEXT INDEX ON [dbo].[SomeTable] KEY INDEX [PK_SomeTable] ON [ft] WITH CHANGE_TRACKING AUTO
ALTER FULLTEXT INDEX ON [dbo].[SomeTable] ADD ([keywords])
ALTER FULLTEXT INDEX ON [dbo].[SomeTable] ENABLE



View 1 Replies View Related

Help Me About Full-text Catalog.Thank You!

Apr 8, 2000

I want to create a full-text catalog.But when I entered the catolog's name 'softonline' and put the yes button,the system always prompt me the words "An unknown full-text failure (80004005) occurred in function CreateCatalog on full-text catalog 'softonline'". How can I do? Thank you very much.

View 1 Replies View Related

Full Text Catalog

May 21, 2008

I want to develop a windows application using cshap 2.0 and sql express 2005. How can i attach a full text catalog in csharp? How can i deploy full text catalog to the client machine?

View 2 Replies View Related

My Full-text Catalog Never Updates?

Oct 21, 2006

Once I add new data I can only get search results to return if I rebuild my fulltext catalog, how do I stop this?thanks-c

View 2 Replies View Related

Connecting To A Full Text Catalog

Jul 9, 2005

I am trying to connect to a full text catalog in SQL. How do I do that? I tried using the same format as connecting to a table but it did not work.

View 1 Replies View Related

Restoring DB With Full Text Catalog

Oct 13, 2000

When restoring a database that contained a full text catalog to another server I noticed that the full text catalogs were not restored. However, the system tables still had the information on these catalogs. As such, I couldn't delete the catalogs (because they didn't exist).

In the end, I deleted the relevant lines from the system table sysfulltextcatalogs and sysobjects and then built a new set of catalogs. Obviously this isn't ideal.

I am restoring databases to a backup/standby server on a regular basis and was wondering if there are any official/documented methods of restoring full text catalogs to another server. (i.e. without having to mess around with the system tables). There doesn't seem to be much in BOL.

Any pointers or ideas on this would be welcome.

Regards,

Karl

View 1 Replies View Related

Full Text Catalog Problem

Mar 4, 2004

I have a database which has (god knows how) ended up with a Full text catalog which is believes is on the E: drive of the machine. The problem is that machine only has C: drive.

If I try and rebuid the catalog (sp_fulltext_catalog 'documents','rebuild') I get an error saying that e:... doesn't exist.

If I try and drop the catalog (sp_fulltext_catalog 'documents', 'drop'), I can't because it contains a full-text index.

If I try and drop remove the full text index from the table (sp_fulltext_table 'tbl_upload','drop'), I can't because Full-text catalog has been lost. Use sp_fulltext_catalog to rebuild and to repopulate it.

HELP

Does anybody know how to either drop it so that I can recreate it or how to update it so that it looks at a disk that the machine actually has?

View 1 Replies View Related

Full-Text Catalog Problem

Oct 30, 2007

Hello Everybody,

I have a really strange problem and i need your advice...

in one line:
creating full-text index bring to Rank = 0 when running FreeTextTable (although it shouldn't be).

in details:
when creating a new catalog on defining full-text index process, I finish the process successfully and then run a query (FreeTextTable) on the first time i get rank = 731, and after that get always rank=0. after checking every option in this process, try to use old catalog (belongs to different full-text search) it works perfectly.

does anyone has a clue?

thanks in advance,
Omer

View 2 Replies View Related

Full Text Catalog Empty

Jun 18, 2007

Hi,



I'm not sure this is the right place for this thread but here goes.



I am trying to setup a full text catalog on one table in my database. Although the catalog is created fine and no erros are reported when creating or populating the catalog. It seems to be empty as its size is only 1Mb and my query:



select top 10* from kmuser.tbl_webpages
where contains (WebPageHTML_FT, '"aruba"'



returns no rows, while:



select * from kmuser.tbl_webpages
where webpagehtml_ft like '%aruba%'



returns 6 rows.



I have read several articles on the subject and have followed them to a T. I've deleted it and recreated so many times now both through Enterprise manager and through query analyser using the stored procedure sp_fulltext_catalog.



I've checked that full text catalog is enabled using:

select DATABASEPROPERTY(DB_NAME(), N'IsFullTextEnabled')



I am really stuck. Does anyone have any ideas?



Many thanks

View 4 Replies View Related

Full Text Catalog Properties

Oct 18, 2007

How can I get all the properties in t-sql that are shown in the full-text catalog properties dialog box in enterprise manager? The one I am specifically looking for is "Physical Catalog". I know Location, Status, Item Count, Catalog Size, and Last Population Date can come from FULLTEXTCATALOGPROPERTY or sysfulltextcatalogs. So where is "Physical Catalog"?

View 2 Replies View Related

Full Text Catalog Empty

Jun 18, 2007

Hi,



I am trying to setup a full text catalog on one table in my database. Although the catalog is created fine and no erros are reported when creating or populating the catalog. It seems to be empty as its size is only 1Mb and my query:



select top 10* from kmuser.tbl_webpages
where contains (WebPageHTML_FT, '"aruba"'



returns no rows, while:



select * from kmuser.tbl_webpages
where webpagehtml_ft like '%aruba%'



returns 6 rows.



I have read several articles on the subject and have followed them to a T. I've deleted it and recreated so many times now both through Enterprise manager and through query analyser using the stored procedure sp_fulltext_catalog.



I've checked that full text catalog is enabled using:

select DATABASEPROPERTY(DB_NAME(), N'IsFullTextEnabled')



I am really stuck. Does anyone have any ideas? Btw I am using SQL Server 2000 still



Many thanks

View 1 Replies View Related

Full-text Catalog Is In An Unusable State

Sep 19, 2007

I have a database that I just copy its datafile(.mdf) and the log file to another place in my system. Due to the fact that the sql server instance developed internal error, then i have to forcefully uninstall it and later install it (done successfully). After re-installation, I attach the database file back to the package withoou first and foremost copy it to the Data folder in  sql server directory, but rather from where I kept the file. When I decided to create a full-text sraching on a table, the name of the catalog to be used has been afore-configured before. So I decided not to create a new one, then when I applied ful-text indexing on one the table i have index use the procedure (full-text indexing), an error generate sayingFull-text catalog is in an unusable state. I tried to google it and the advice is to drop the catalog and re-create a new catalog. Then when i use this statementdrop fulltext catalog <name>; Error is prompted saying it can not be commited because of the associated table(s) that have been indexing. Is there any way to easily drop all these indexes and re-create another catalog as well as a new indexing on the affected tables.  Any suggestions/help is welcome. Very urgentthanksTechnology Consultantwww.legwork.com.ng 

View 2 Replies View Related

Remove Ignored Words - Full Text Catalog

May 29, 2005

heywhen i try to search an "noise word" it drop me an ERRORwhat i have done : - stop full text service- remove the words i want ,from noise.enu , noise.eng , noise.dat (@@language = u.s...) the files is in system32 and in program files...config .- start full text service-rebuild and after that re populate the catalog
and it still drop me an ERROR !!! how can i resolve this prob ???
tnx tnx .

View 8 Replies View Related

Serach On Full Text Catalog Faill Please Help

Jul 22, 2005

I got following meesage, when i doing search, please helpMicrosoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC SQL Server Driver][SQL Server]Search on full-text catalog 'CCM_FT_Catalog' for database ID 10, table ID 987150562 with search condition '11' failed with unknown result (3a8d75c).

View 1 Replies View Related

SQL2000: Can't Remove Full Text Catalog!!!!

Jan 4, 2006

This is driving me nuts.

I recently moved a database from one server to another.  One thing
I didn't catch is that I had a Full Text Catalog on the old server.

Well, on the new server, the catalog is still pointing to a disk
location that doesn't exist on the new server.  I tried to remove
the catalog but get an error:
"Error 21776:  The name 'Claims Catalog' was not found in the FullTextCatalogs collection....."

So, I go to the table and attempt to remove Full Text Indexing but get
the same error with:  "Error 20565: Database is not full-text
enabled yet"

I tried to remove the indexing key from the table and get:  "Invalid cursor state"

I even tried to fake a mapped drive with the path it was looking for and it still doesn't work.

Any suggestions other than dropping the table?  (it has about 40,000 records).

Thanks!

cbmeeks

View 2 Replies View Related

FULL-TEXT Catalog Not Remembering The Indexes

Nov 15, 2005

I have made a full text catalog for my article table, and enabled "change tracking" and "update in background", this works just the way its supposed to work, a little delay before I can search in the entered text, but thats not a problem.

The Problem is when I restart the server, then it forgets the things it has indexed in the background, and it doesnt seem to enable the "update in background"-feature, before I manually starts population the first time.

How can I set it to start population on server startup, and remember the things it indexes in the background?

View 2 Replies View Related

How To Populate Catalog For Full Text Searches?

Feb 9, 2005

i want to be able to do full text searches on a table that i have that already has data in it.. i created a new catalog, then started incremenetal population.. but nothing happened? will it only catalog the new data thats been entered into the table after i start incremental update? so since i have data in teh table already, would i need to do a full population first before i start incremenetal population?

thanks!

View 4 Replies View Related

SQL 2012 :: Reorganizing Full Text Catalog?

Sep 10, 2014

I am in a dilemma if I should reorganize or rebuild a full text catalog.

My application owner does not want a rebuild as he says that it takes week for the rebuild to occur on these full text indexes.

Will this code just re-organize without turning off the full text indexes : Alter fulltext catalog catalog_name Reorganize

View 4 Replies View Related

How Do I Backup SQL Database AND Full Text Catalog

Jun 19, 2008

I have an SQL 2005 Express Advanced database that also has a full text catalog.

My application creates .bak backups of the sql database, but how do I create backups of the full text catalog?

many thanks in advance

View 3 Replies View Related

Unable To Create Full Text Catalog! Please Help

Dec 10, 2007

Hi,

Hope this is the right forum - apologies if its not. I'm a newbie. I'm at my wits end as I cant create a full-text catalog in SQL server 2000. Let me explain (I'll try and include as much info as I can):-

When I run the following command:
sp_fulltext_catalog 'Cat_Desc', 'create'

I get the following error mesaage:

Server: Msg 7619, Level 16, State 2, Procedure sp_fulltext_catalog, Line 64
The specified object cannot be found. Specify the name of an existing object.

I in as user sa. I determine this from running:
select suser_sname()

The SQL Server instance is running under user: LocalSystem
I determine this from the following command:

DECLARE @serviceaccount varchar(100)
EXECUTE master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'SYSTEMCurrentControlSetServicesMSSQLSERVER',
N'ObjectName',
@ServiceAccount OUTPUT,
N'no_output'
SELECT @Serviceaccount

The database is owned by: sa (determined by visual inspection).

Yes, full text indexing is enabled for this database as I ran the following command:

EXEC sp_fulltext_database 'enable'

and get the following:
(1 row(s) affected)
(0 row(s) affected)
(1 row(s) affected)



Now I can't think of anything else. I'm at my wits end! Please help. Any comments/suggestions/ideas/diagnostics greatly appreciated.

Thank you,
Al.

PS: Apologies if I'm in the wrong forum!

View 19 Replies View Related

Full Text Catalog, Compound Key Problem

Dec 19, 2007

Hi

I have a sql 2000 db which has a table that has a compound key, the problem is that I would like to create a Full Text Catalog for this table. However I noticed that i need a single primary key... but I dont have one.

I created another field on my table called "ftcID" as an int with identity set to Yes

However when I try and create a catalog it doesnt detect that this field is unique.

Does my unique field have to be a Primary Key, I cant remove the compound primary key as it will break my application.

Any help would be much appreciated

Many thanks in advance

View 3 Replies View Related

Lost Full Text Catalog That Won't Delete!

Mar 6, 2008

During a server upgrade somehow the full-text catalog for a databasewas lost. Now when I go into Enterprise manager I can't remove the oldcatalog or create a new one!How do I get rid of the current broken catalog and start a fresh?

View 3 Replies View Related

How To Move Full Text Catalog SQL 2005???

Sep 6, 2007



I have Googled the terms 'move path change full-text index catalog' and have come up with nothing that pertains to SQL 2005...only 2000 and 7.0....

So my question remains, how the heck do you change the location of the full-text catalog in SQL 2005? Must I delete and re-create? If so is there a good article on this process? I don't want to loose data or screw anything up....I can't imagine I am the first person who wants to do his?????

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved