How to fulltext index more words - for example P A NC

Hi everybody,
I need to fulltext index a special phrase, for example P A NC, B A KLP, PO A BZ, etc. White space is standard delimiter words.
I need oposite to stopwords
Could you help me
Thanks
Martin

Not quite sure what you're looking for.  You can turn off stopwords by using "stoplist ctxsys.empty_stoplist" in the parameters clause.  But are you looking to index those phrases as single tokens?  That can't be done without pre-processing the text in some fashion, perhaps replacing the spaces with a special character and defining that as a PRINTJOINS character, so that "P A NC" is indexed as "P+A+NC" or similar.
SQL> create table foo (bar varchar2(2000));
Table created.
SQL> insert into foo values ('the quick brown P A NC jumps over the lazy B A KLP');
1 row created.
SQL> update foo set bar = regexp_replace( bar, 'P A NC', 'P+A+NC');
1 row updated.
SQL> update foo set bar = regexp_replace( bar, 'B A KLP', 'B+A+KLP');
1 row updated.
SQL> select bar from foo;
BAR
the quick brown P+A+NC jumps over the lazy B+A+KLP
SQL> exec ctx_ddl.create_preference('mylex', 'BASIC_LEXER')
PL/SQL procedure successfully completed.
SQL> exec ctx_ddl.add_attribute('mylex', 'PRINTJOINS', '+')
BEGIN ctx_ddl.add_attribute('mylex', 'PRINTJOINS', '+'); END;
ERROR at line 1:
ORA-06550: line 1, column 15:
PLS-00302: component 'ADD_ATTRIBUTE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec ctx_ddl.set_attribute('mylex', 'PRINTJOINS', '+')
PL/SQL procedure successfully completed.
SQL> create index fooindex on foo(bar) indextype is ctxsys.context
  2  parameters ('lexer mylex stoplist ctxsys.empty_stoplist');
Index created.
SQL> select * from foo where contains (bar, 'B+A+KLP') > 0;
BAR
the quick brown P+A+NC jumps over the lazy B+A+KLP

Similar Messages

  • HT5176 Is there a command to capitalize certain words, for example title of books, using dictation?

    Is there a voice command to capitalize certain words, for example title of a book, while using voice dictation?

    Yes.  You can say the word "cap" to capitalize the next word you say. Or say "caps on" to get the next letter to be a capital.
    More info on dictation commands can be found in the user guide. Under Dictation.
    http://manuals.info.apple.com/en/ipad_user_guide.pdf

  • How many SECONDARY INDEXES are created for CLUSTER TABLES?

    how many SECONDARY INDEXES are created for CLUSTER TABLES?
    please explain.

    There seems to be some kind of misunderstanding here. You cannot create a secondary index on a cluster table. A cluster table does not exist as a separate physical table in the database; it is part of a "physical cluster". In the case of BSEG for instance, the physical cluster is RFBLG. The only fields of the cluster table that also exist as fields of the physical cluster are the leading fields of the primary key. Taking again BSEG as the example, the primary key includes the fields MANDT, BUKRS, BELNR, GJAHR, BUZEI. If you look at the structure of the RFBLG table, you will see that it has primary key fields MANDT, BUKRS, BELNR, GJAHR, PAGENO. The first four fields are those that all cluster tables inside BSEG have in common. The fifth field, PAGENO, is a "technical" field giving the sequence number of the current record in the series of cluster records sharing the same primary key.
    All the "functional" fields of the cluster table (for BSEG this is field BUZEI and everything beyond that) exist only inside a raw binary object. The database does not know about these fields, it only sees the raw object (the field VARDATA of the physical cluster). Since the field does not exist in the database, it is impossible to create a secondary index on it. If you try to create a secondary index on a cluster table in transaction SE11, you will therefore rightly get the error "Index maintenance only possible for transparent tables".
    Theoretically you could get around this by converting the cluster table to a transparent table. You can do this in the SAP dictionary. However, in practice this is almost never a good solution. The table becomes much larger (clusters are compressed) and you lose the advantage that related records are stored close to each other (the main reason for having cluster tables in the first place). Apart from the performance and disk space hit, converting a big cluster table like BSEG to transparent would take extremely long.
    In cases where "indexing" of fields of a cluster table is worthwhile, SAP has constructed "indexing tables" around the cluster. For example, around BSEG there are transparent tables like BSIS, BSAS, etc. Other clusters normally do not have this, but that simply means there is no reason for having it. I have worked with the SAP dictionary for over 12 years and I have never met a single case where it was necessary to convert a cluster to transparent.
    If you try to select on specific values of a non-transparent field in a cluster without also specifying selections for the primary key, then the database will have to do a serial read of the whole physical cluster (and the ABAP DB interface will have to decompress every single record to extract the fields). The performance of that is monstrous -- maybe that was the reason of your question. However, the solution then is (in the case of BSEG) to query via one of the index tables (where you are free to create secondary indexes since those tables are transparent).

  • How do I get more memory for my Macbook Pro Spring 2010 13-inch with 2.66GHz Intel Core 2 Duo?

    How do I get more memory for my Macbook Pro spring 2010 13-inch with 2.66GHz Intel Core 2 Duo. Apple says no memory currently available for that model. I have 4 GB memory and 3.99 used. Help!

    macette1976 wrote:
    Now I'm confused. This is the one Crucial told me to get:
    CT3309356 - 4GB DDR3 PC3-8500 Unbuffered NON-ECC 1.35V 512Meg x 64
    $45.99
    Also what do you mean that actual memory is 16GB but with Apple it's 8?
    When I go to the "About this Mac" it says Memory 4G 1067 MHz DDR3, then when I go to System Report it says
     Memory Slot
    Bank 0/ DIMM0 2G DDR3 1067 MHZ OK
    Bank 1/ DIMM0 2G DDR3 1067 MHZ OK
    Sorry I'm clueless. Just don't want to buy something that messes up my machine more than it already is.
    The Crucial site appears to have recommended the correct spec 4gB RAM stick for your model. Please note that you will need to remove the existing sticks of RAM to install new, so you will need 2x4gB to get to 8gB.
    When your model of computer was designed/built, it was tested with readily available 2x4gB (8gB). After release RAM retailers have tested it with higher amounts, and Apple didn't update their quoted specs.

  • How to make custem sized book for example 12inch x 8 inc, 18 inch x12 inch

    how to make custem sized book for example 12inch x 8 inch, 18 inch x12 inch

    I'm afraid there is no way to do this currently available.

  • How do you highlight typed words for a calendar event

    how do you highlight typed words for a calendar event on ical?

    See this plugin in for APEX 4.x applications..:http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/clarifit-report-instant-search_98.html
    Next time please help us help you.. Post the following information:
    APEX Version
    Database Version
    Browser Version
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • FullText index blocking word contains with (S)

    Hi,
    My table column have "school(s)" value.
    I have created full text index for this table.
    And executing the below query first query not returning any records and second query returning records.
    select * from TABLENAME WHERE CONTAINS(ColumName, '"school(S)"') 
    select * from TABLENAME WHERE CONTAINS(ColumName, '"school(s)"') 
    Difference between both query is (S).
    Thanks in advance

    Hi Radhakrishnan,
    Full-text queries are not case-sensitive. For example, searching for "Aluminum" or "aluminum" returns the same results. Please refer to the article below:
    Full-Text Search (SQL Server):http://msdn.microsoft.com/en-us/library/ms142571.aspx
    I tried to repro this issue on my test environment, but it will return the expected reuslt. Here is the sample code for your reference, please see:
    CREATE DATABASE FULL_SEARCH_TEST
    USE [FULL_SEARCH_TEST]
    Create Table FullText_Search
    Id Int Primary Key Identity(1,1),
    Name Nvarchar(50)
    GO
    INSERT INTO FullText_Search VALUES('school(s)')
    INSERT INTO FullText_Search VALUES('Test1')
    INSERT INTO FullText_Search VALUES('Test2')
    SELECT * FROM FullText_Search
    GO
    CREATE FULLTEXT CATALOG FTSearch
    GO
    --Show all constraint names
    SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
    CREATE FULLTEXT INDEX ON FullText_Search
    (Name) KEY INDEX PK__FullText__3214EC077EC2BD1F
    ON FTSearch;
    SELECT * FROM FullText_Search WHERE CONTAINS(Name, '"school(s)"')
    GO
    SELECT * FROM FullText_Search WHERE CONTAINS(Name, '"school(S)"')
    I would suggest you share your DDL+DML to us for further investigation. Don't forget to let us know the version of your SQL Server.
    Regards,
    Elvis Long
    TechNet Community Support

  • How can I get Pantone colours (for example PMS 285) back in CS6 Illustrator?

    Pantone colours (for example PMS 285) are not available in CS6 ( Illustrator and Indesign). How can I get the right colours back?

    Are you certain they are not available?
    Mike

  • How can i allocate more RAM for my onboard video card on a 2011 macbook pro 13 inch running windows 7 via bootcamp

    I noticed that since Macbooks.. macs in general use an EFI instead of BIOS.  . .. Now i need to allocate some more RAM for the onboard video card since its currently running with an estimated 50mb.. I would like to increase this to 512  and cut the 3.95 down to 3.5 MB for the rest of the system ( allowing me to run more graphic intensive games and the such ... ) I know this could slow down the entire system.. ( i am aware of this ) and have gotten a 3rd party application to control and close out uneeded processes during gaming.. I just need more ram for my onboard video card.. Any help?

    You don't allocate more RAM towards your video card, you put more RAM into the machine and hopefully some machines will bump the CPU graphics RAM allocation up a little.
    The problem is you bought a integrated only graphics computer, if you want to 3D game you need a dedicated graphics computer with it's own or dedicated VRAM.
    If your this serious about 3D gaming, your on the wrong platform.
    Get a Windows 7 64bit i7 8GB RAM expandable 3D gaming tower with a good power supply and video card upgrade path, this way every few years you buy and stick in a new video card to play the latest games.
    Mac's are not gaming machines and never will be because they would last too long if we could upgrade them.
    http://www.cbscores.com/index.php?sort=ogl&order=desc

  • How to display amount in words for subtotal value?

    Hi All,
    I am diplaying a amount in words for sub-total value after each document number.
    Can any one suggest how to display text for sub-total value not for Grand total?
    I want subtotal at each material for each document number and want to display that subtotal amount in words.
    Thanks and Regards
    Steve

    Thanks Jorge ,
    Is it possible in ALV printing Sut-total text by adding a new line .?
    And where to insert At new or on-chane ?
    Sub-total  calculating automatically not programaticall..
    Regards
    Steve

  • How to create index in word document?

    Hello,
    Is it possible to create a index in word document from abap code (ole)?
    Thank you for response..
    Alfonso

    1.Goto the transparent table  KNA1
    2. select the button Indexes (which is next to the techincal settings button)
    3.list of alredy existing indexes are displayed
    4. in the dialog displayed select the icon create.
    5. specify the name for the index to be created ( should start with Z)
    6. screen for specify the index fields will appear, specify the details based on your requirement.
    Note:
    1.creating an index will created a sorted  copy of the DB table with data  with limited fields
    2. Try using already created indexes , only if necessary create new index
    3. Here table KNA1 is used as an example

  • How can I get MS word for my mac?

    How can I get ms word on for my mac?

    You're going to need to go buy it from somewhere. MS may sell a digital version of MS Office that you can buy and download or you may need to find the boxed software for a Mac somewhere.

  • How to debug Alchemy with VC++ (for example vc++6.0)

    Hi all,
    i want to debug the alchemy code with VC++. For example, I use sample /stringecho.
    I  create a new project and add stringecho.c  . But build error---------fatal error C1083: Cannot open include file: 'AS3.h': No such file or directory
    If I copy AS3.h from alchemy directory  to my project directory ,build error---------error LNK2001: unresolved external symbol _AS3_LibInit
    error LNK2001: unresolved external symbol _AS3_Release.........
    can any one have idea how to debug,
    waiting for inputs
    thanks in advance

    Sorry but you can't compile Alchemy stuff like AS3.h in visual studio hoping to debug your application
    You may develop your C/C++ code in visual studio as a "portable application" to alchemy or whatever platform you like, so you may develop , debug it, and then recompile the whole application in alchemy ... you will need a lot of #ifdef/#endif and so on to make it.
    If you have isolated pieces of C/C++ code build up a test application and test it.. maybe it's easier.
    if you really need to debug the alchemy version of your code you could follow this post, it's a great starting point.
    http://forums.adobe.com/thread/416004
    i hope it could help
    Dario

  • How can I buy more bytes for my ipad

    My iPad says that I have zero bytes how can I get more space

    Alternatively you can move some of your photos and documents to Dropbox.
    https://itunes.apple.com/sg/app/dropbox/id327630330?mt=8

  • How can I get more effects for photo booth?

    I just bought my new MacBook Pro and I thought photo booth would come with more effects. How do I get more effects, not backgrounds?

    http://b-l-a-c-k-o-p.com/CatEye.html

Maybe you are looking for