17.11.2014 Views

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

contain structures, and ChemFinder/Oracle does<br />

not show a structure (or formula or molweight)<br />

column, then it may be necessary to set up some<br />

configuration information about the table. For<br />

details, see “Configuration Via CF_SETTINGS<br />

Table” on page 704.<br />

Searching<br />

From the user's point of view, searching in<br />

ChemFinder/Oracle works basically the same way<br />

as in ChemFinder: you enter a query, search, then<br />

work with the hitlist. Internally, however, the<br />

ChemFinder/Oracle machinery is quite different.<br />

There are three types of table involved in handling<br />

hit lists. All are created in your own tablespace. One<br />

is global, applying to all lists saved from any table;<br />

others are connected to the particular table or view<br />

being searched.<br />

• CF_HITLISTS. The directory of all saved<br />

lists. This table is created the first time any list<br />

is saved.<br />

• SAVED_tablename: All lists which have been<br />

explicitly saved from a given table or view. This<br />

is created the first time a list is saved.<br />

• HITS_tablename: All lists automatically saved<br />

after every search over a given table or view.<br />

This table is created the first time a search or<br />

list operation is carried out and is deleted at the<br />

end of the session.<br />

Here's what happens when you present a query to<br />

ChemFinder/Oracle:<br />

1. If the query contains a structure, it is converted<br />

to a text representation and copied to a<br />

temporary table.<br />

NOTE: The table is called temp_queries. It is<br />

created in the CSCartridge tablespace, and removed as<br />

soon as the search is finished or interrupted.<br />

ChemFinder does not yet handle the case of multiple<br />

structure boxes where more than one contains a query.<br />

2. The query is converted to a SQL select<br />

statement. Query components in form boxes<br />

are ANDed together (just as in ChemFinder),<br />

where the structural parts are calls into the CS<br />

Oracle Cartridge structure search functions.<br />

3. The hits table is created, if it does not already<br />

exist.<br />

4. A unique ID is assigned to the new list which<br />

will result from the search.<br />

5. The select statement is wrapped in a larger<br />

SQL statement which will cause the results to<br />

be deposited directly into the hits table.<br />

6. The SQL is executed.<br />

7. When the search is complete, the results are<br />

new rows in the hits table. Each row contains<br />

the new list ID alongside the ID of a record<br />

from the searched table.<br />

8. The final list is prepared by a join, selecting<br />

rows from the main table which have record<br />

ID's matching those of the new list in the hits<br />

table.<br />

The resulting list is ready to browse, save,<br />

export, etc.<br />

NOTE: Text searches in Oracle are case sensitive. You will<br />

get different hits from the query “benz*” than from “Benz*.”<br />

Handling Lists<br />

There are differences between ChemFinder and<br />

ChemFinder/Oracle in working with hitlists:<br />

• Save List does not bring up a file dialog in<br />

ChemFinder/Oracle; instead, it presents a<br />

dialog in which you enter a name and a line of<br />

comments for each list.<br />

• Restore List presents a dialog in which you<br />

choose from the available saved lists (see<br />

screen shot below); double-click to select one.<br />

ChemFinder<br />

<strong>ChemOffice</strong> 2005/ChemFinder ChemFinder/Oracle • 355<br />

Searching

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!