If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > dbase design problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-04, 08:56
leeovan leeovan is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
dbase design problem

hello all

im making a search engine in java and am using a database.

one table represents the documents that users will search this has the following fields

title, documentRef, IndexTerms, DocId

i was thinking PK here of DocId which will be auto numbered so unique.
IndexTerms is a list of index terms that should map the semantics of the document something like "happy, day, birth, jesus".

now i also have another table with the following fields that allows me to search through indexterms to find the docs i need

IndexTerm , DocIdList

here a single index term has many possibly documents. also my PK was going to be IndexTerm. My problem is that i want the functionality of both tables but am unsure how best to join them up considering that the ideal foreign key is locked up inside a list.

i have tried considering other datatypes but to no avail all help welcome and appreciated thanx
leeo
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On