How is custom HTML for the page loading widget for the jQuery mobile web app?
I tried the following:
$ (document) .on ('mobileinit', function () {$ .mobile.loader.prototype.options.html = " & Lt; span class = 'ui-bar ui-owl-c ui-corner-all' & gt; & lt; img src = '/ image / logo.png' /><h2>.loading...< ; / H2 & gt; & lt; / span & gt; ";}); But it still displays the default image. I want a global configuration.
in a single page
.
$ (document) .ready (function () {$ .mobile.loading ('' foo '', text: 'foo' Text visual: True, Theme: 'Z', HTML: "End Lieutenant: Span Class = 'UI-Bar UI-Overlay-C UI-Corner-All'" .shougun.it / images / loading.gif '/><h2>.loading...</h2></span> "});}); & lt; Script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Link href = "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" rel = "stylesheet" /> & Lt; Script src = "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js" & gt; & Lt; / Script & gt; & Lt; Div data-role = "page" & gt; & Lt; Div data-role = "header" & gt; & Lt; H1 & gt; Header & lt; / H1> & Lt; / Div & gt; To set up in a global form
call it belog & lt; Script src = jquery should be JS & gt; But before & lt; Script src = jquerymobile.js & gt; Calling on and mobileinit events should you import JS before loading jQuery Mobile JS?
I have a table named common_leger, from which I need to run to show the balance between Dramant, CR_Amount and them. This is the reason I have written a question below. But I'm getting the result of every query as if the current row's balance But I have to produce results with the remaining balance. Let's say the first row of the drum balan is 20000 and the crawlance is 5000 and the rest is 15000. In the second line, only CrabBlalance is 5000. Now the result should be 10000 with deduction, but my result is -5000. I have no idea how to fix this. Can anyone help me on this? I need a lot of help from you here my query is given below:
SELECT "as cost_center_id," AS cost_center_name ", AS office code, convert ('2013-02-01', DATETIME) in 'as Lenden_det,' 'accounts_head_id,' as' ACCOUNT_NAME, '' as opposite_accounts_head_id, 'as' opposite_account_name,' opening balance 'details, tempOpeningBalance.dr_amount, tempOpeningBalance.cr_amount, As the 'voucher_no,' in the form of Win (Selection IFNULL ('1101010101100321' as mcoa.account_code) as ACCOUNT_CODE, IFNULL (mcoa.account_name, 'cache') form of ACCOUNT_NAME In the form of dr_amount, IFNULL (mcoa.account_type, 'asset'), ACCOUNTTYPE, CAST (IFNULL (sum (IFNULL (as in maingl.dr_balance, 0)), 0) as decimal (27,5) Cast (IFNULL (IFNULL (IFNULL (maingl.cr_balance, 0)), 0) decimal (27,5)) from master_chart_of_accounts as cr_amount as in the form of mcoa inner chart_of_accounts COA included on (mcoa.id = coa.master_chart_of_accounts_id and mcoa.id = 80) left join General_ledger select AS maingl ON (coa.id = maingl.accounts_head_id and coa.account_code = '1101010101100321') join insider (gl.accounts_head_id, Max (gl.gl_id ) As max_gl_id, gl.office_code, gl.office_type, gl.country_id, gl .cost_center_id general_ledger by GL form - Join voucher_info as gl.voucher_info_id = vi on inner vi (id .id) - WHERE vi.posting_date & lt; '2013-02-01' and WHERE gl.transaction_date & lt; '2013-02-01' and gl.cost_center_id IN ('BI0000000000000000000001') and gl.country_id IN (1) and gl.office_code IN ('UG500013') and 1 = 1 group by gl.accounts_head_id, gl.office_code, gl .office_type, gl.country_id, gl.cost_center_id by order gl_accounts_head_id) at AS tmpgl (maingl.office_code = tmpgl.office_code and maingl.office_type = tmpgl.office_type and maingl.accounts_head_id = tmpgl.accounts_head_id and maingl.country_id = tmpgl. country_id and maingl.cost_center_id = tmpgl.cost_center_id and maingl.gl_id = tmpgl.max_gl_id) select temporarily banking union as WHERE mcoa.account_status_id = 1 and coa.account_status_id = 1) as vi.cost_center_id, cc.center_name Transaction_date, cost_center_name, gl.office_code, vi .posting_date, vd.accounts_ Head_id, (Chart_off_counts select chart_off_counts WHERE chart_of_accounts.id = vd.accounts_head_id) AS account_name, vd.opposite_accounts_head_id, (select chart_ of_accounts.account_name chart_of_accounts WHERE c hart_of_accounts.id = vd.opposite_accounts_head_id) opposite_account_name, vd.particulars, gl as as .dr_amount dr_amount - to check here, gl.cr_amount as cr_amount, vi.voucher_no, vi.vin general_ledger JL voucher_info as inner vi JOIN (gl.voucher_info_id = vi.id ) Join Insiders at cost_center CC (vi.cost_center_id = cc.id) Join Inside voucher_details on vd Inner form (vi.id = vd.voucher_info_id) join chart_of_accounts as COA (vd.accounts_head_id = COA.ID) WHEER vi.posting_date between '2013-02-01' AND'2013-02-28 ' and vi.voucher_status_id = 3 and vd.status_id = 1 and vi.office_code = 'UG500063' and coa.account_code = '1101010101100321' and coa.cost_center_id = 'BI0000000000000000000001 cost_center_name by orders orders, office_code, transaction_date;
Use a variable like this
SET @ running_balance = 0; SELECT dr_amount as dr_amount, cr_amount as cr_amount, @running_balance: = (@running_balance + dr_amount - cr_amount) General_logger
I have stored an XML file in the property folder, and I want to recover the data XML file, I store in the property, give me a solution.
& lt; Feedback & gt; & Lt; RequestID & gt; 1001 & lt; / RequestID & gt; & Lt; FunctionStatus & gt; & Lt; / FunctionStatus & gt; & Lt; Message & gt; & Lt; / Messages & gt; & Lt; Results & gt; & Lt; Banner & gt; & Lt; Banner_List & gt; & Lt; Banner_id & gt; 3794 & lt; / Banner_id & gt; & Lt; Banner_url & gt; Http: //www.metromatinee.com/agile_dogs/05.jpg< / Banner_url & gt; & Lt; MovieName & gt; Rose Guitaral & lt; / Movie_name & gt; & Lt; Gender & gt; Movie & lt; / Gender & gt; & Lt; / Banner_List & gt; & Lt; / Reaction & gt; I have tried InputStream = getAssets (). Open ("demo.xml");
Due to the exception
Any help .. ??? 03-27 11: 03: 04.939: E / Android sequence (432): fatal exception: main 03-27 11: 03: 04.939: E / Android randomime (432): java. lang.NullPointerException 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432): android.content.ContextWrapper.getAssets (ContextWrapper.java:74) in 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432) on com.service.example.DemoBussinessExecutePage.executeBussinessFunction (DemoBussinessExecutePage.java:230) 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432): com.service.example.Service_Manager.executeBussinessFunction on ( Service_Manager.java38) 03-27 November: 03: 04.9 3 9: E / AndroidRuntime (432): $ 1.onClick (Service_class.java:57) at com.service.example.Service_class 03-27 Nov: 03: 04.9 3 9: E / AndroidRuntime (432): 03 :: 0 4.9 3 9: E / AndroidRuntime (432): android.view.View.performClick (View.java:2408) on November 3-27, at android.view.View $ PerformClick.run (see Java: 8816) 03-27 11:03: 04.9 3 9: E / AndroidRuntime (432): at android.os.Handler.handleCallback (Handler.java lesson87) 03-27 Nov: 03: 04.9 3 9: E / AndroidRuntime (432): android on os.Handler.dispatchMessage (handler java: 92) 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432): android.os.Looper.loop (Looper.java:123) for 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432): android.app.ActivityThread.main 03-27 on (ActivityThread.java:4627) 11: 03: 04.9 3 9: e / AndroidRuntime (432): the java.lang .reflect.Method.invokeNative (Native Method) 03-27 11: 03: 04.9 3 9: E / AndroidRuntime (432): at java.lang.reflect.Method.invoke (Meth od.java:521) 03-27 November 03: 04k9 3 9 E / AndroidRuntime (432): .internal.os.ZygoteInit $ MethodAndArgsCaller.run on com.android (ZygoteInit.java:868) 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432): com.android.internal.os.ZygoteInit.main (on ZygoteInit.java: 626) 03-27 November 03: 04k9 3 9 e / AndroidRuntime (432): On dalvik.system.NativeStart.main (Native Method)
Found the solution
AssetManager am = Class.getAssets (); Try {InputStream = am.open ("1001.xml"); Int length = is.available (); Byte [] data = new byte [length]; Is.read (data); DemoInput = new string (data) .toString (); } Hold (IOException e1) {e1.printStackTrace (); }
First of all: This question is a duplicate not is. My previous question on the subject (of all things) was closed as a duplicate. It was not useful at least in the bit - I did not understand anything. I'm totally new to OOP - I need an answer according to my level of understanding - I had no clue about what the issues were being asked about the answers to the associated questions. Just because the question appears can be similar, can not be a questioner - I have specifically requested in my previous question that any kind of understanding has an 'understanding' on my level ' answer. So, I ask again (and again, if I want to). Here goes:
I am still completely new to PHP, and even new to Oriental Oriented PHP, who taught it only last week itself Have started, and I still understand some concepts like heritage and which class is the abstraction - some of them have been able to raise quite a bit because I am working with PDO and for some time my database is connected Do not help in handling other questions, but otherwise I am still a newbie in the OOPHP, then bear with me if my question seems a bit 'root'.
I have every initial file (init.php) that is required at the top of each of my webpages, except for other things, from a MySQL database using PDFs such as: < Pre> try {$ dbh = new PDO (insertion data here); } Hold (PDOException $ e) {echo $ e-> GetMessage (); }
So, as I think, on the execution of this code, $ dbh is now installed as a PDO object in the bottom of my init.php file There is a great need to add files to functions such as user.func.php , images.func.php , etc. The problem is that whenever I need to ask the database from within my function, then before being able to handle it, let me write a code as $ dbh Need to declare the I: function myFunction {global $ dbh; // Here's the problem! {$ Stmt = $ dbh- & gt; Try (some SQL here); $ Stmt- & gt; Executed (); } Hold {// etc}} Now, I do not understand this problem Why I have to declare globally - I understand this much, but how can I Avoid this. I have read some stack overflow answers that why not to avoid global, I just do not know how. How do I go about removing global $ dbh from my code? Can I create a database handler class and every time I intimate it and pass my connection settings in the constructor mode instead? (Looks a little unnecessary). In fact, it is not sure how to change the usage of my global variable, so in my understanding surely the help is appreciated! In a very broad way - you are asking here that there are specific principles that it would be useful to write code. Understand before cultivating. I know it sometimes seems attractive, but taking a step back to know some principles is really useful.
The answers you are connected to, explain directly dependency injection, but this may be a better place to start () especially this comment:
end In - I suggest that you will see some simple frameworks which handle some stuff - and learn from reading the source code.
A super simple liability injection container is Pimple:
A quick look at the introduction - it's not scary and help you get the concepts involved needed.
I have written a swing form with 5 text box and a button. When I click the button save, the data entered is being displayed in the table. Now I want to store the data shown in the table in a text file. Anyone can help me with this code I am still a Java startup and have very little idea about Java coding. After a lot of surfing, I was able to run the table. I am attaching the code done so far. If I have made some silly mistakes, please excuse me. In fact your help is needed in advance ..
import javax.swing *; Import java.awt. *; Import java.awt.event. *; Class ReadTextFile JFrame {JButton save; Zeppel panel; JLabel label 1, label 2, label 3, label 4, label 5; The last JTextField text1, lesson 2, lesson 3, lesson 4, lesson 5; ReadTextFile () {label 1 = new jlab (); Label1.setText ("English word:"); Text1 = new JTextField (20); Label 2 = new jlab (); Label2.setText ("English Nickname:"); Text2 = new JTextField (20); Label 3 = new jlab (); Label3.setText ("Kannada word:"); Text3 = new JTextField (20); Label 4 = new jlab (); Label4.setText ("Kannada alias:"); Text4 = new JTextField (20); Label 5 = new jlab (); Label5.setText ("Part of speech:"); Text5 = new JTextField (20); Save = New Pocket ("Save"); Panel = new zpinal (new grid layout (6,2)); Panel.add (label1); Panel.add (text1); Panel.add (LABEL2); Panel.add (text2); Panel.add (Label3); Panel.add (text3); Panel.add (label4); Panel.add (text4); Panel.add (label5); Panel.add (text5); Panel.add (save); Add (panel, BorderLayout.CENTER); SetTitle ("Word Base"); save.addActionListener (new ActionListener () {public void actionPerformed (ActionEvent ae) {string 1 = text1.getText (); String Value 2 = text2.getText (); string value3 = text3.getText (); string VALUE4 = text4 .getText (); string value5 = text5.getText (); object rowData [] [] = {{value 1, value 2, value3, VALUE4, value5}}; object COLUMNNAMES [] = { "English Word", "English synonym "" Kannada Word "," Kannada equivalents "," position "}; JFrame f = new JFrame (); JTable table = new JTable (rowData, COLUMNNAMES); jScrollPane Scrollpane = new JScrollPane (table); JPanel p = new JPanel (); p.add (Scrollpane); f.add (P); f.setVisible (right); //f.setDefaultLookAndFeelDecorated(tru E); f.setSize (400,200);}}); } Public static void main (String AGR []) {tryTextFile frame = new Reedtekstfail (); Frame.setSize (300,200); Frame.setVisible (true); } Hold (exception e) {}}}
In your button action listener, you You can obtain the data table from the table and type in the file like this.
stringbuffer sbTableData = new StringBuffer (); For {{int column = 0; column & lt; table.getColumnCount (); column ++} {sbTableData.append} for the line & quot; row.getRowCount (); (Table.getValueAt (row, column)). Attachment ("\ t"); } SbTableData.append ("\ n"); } // In a file, type `sbTableData.toString ()`
We are working on an open source project and are going to publish it on Geithub. Currently, we have a repo on our own server, which, in order to pull / push developers,
In view of this, can we prepare our development using our own repo Can setup.
Or what is the standard practice for this?
"post-text" itemprop = "text">
You can set a remote that indicates a geath
< Add code> git remote github git@github.com: user / project.git Then you can push it on when you want to make your changes appear GitHub repo
git push github
When I select partition from the partition area, then I have to load all the child workers related to that partition. How to use self.pool.get ('my.object') browsing (CR, UID, ID, context = CTX)
> Or with SQL & amp; cr.excecute Refer this picture for ease
Here is my code and refer to the job. See the section
Haha had this dilemma a few weeks ago, its code is not showing, but I like using the ORM as much as possible.
, instead of the cr.execute "direct" query function. Cheers.
Since I started using Eclipse Project Euler, I noticed that a large number of time a random negative numbers Becomes. I think there is something to pass this type of body.
I'd appreciate it if you could explain to me how they arise negative number and what is the reasoning behind it. Also, how can I escape from them (not better with BigInteger class) Danke! =)
This picture shows what you are looking for. In your case it is clearly a large number, but the principle remains the same.
example limitation in Java:
int: 2,147,483,648 to 2,147,483,647
long: -9,223,372,036,854,775,808 of 9,223,372,036,854,775,807
image 0000, 0001, etc., binary numbers Representation represents.
edit: the project Olr so you are often designed with a way Lagre number of problems with large numbers of working around that you can not use normal methods of troubleshooting. However, if you think that you really need to use them, I suggest BigInteger studies anyway, you will find it useful in the long run, and this is not all complicated here is a link with many sensible examples. :
I have a site with a sticky footer and I have to keep a background image at the top of my content. This is fine with the border but if I remove the "thin blue solid" range from the contents then the whole thing is pushed and my background image is no longer right on top ...
< Code> & lt; Div id = "mainContain" & gt; & Lt; Div id = "header" & gt; & Lt; / Div & gt; & Lt; Div id = "contentcontain" & gt; & Lt; Div id = "content" & gt; & Lt; H2 & gt; Hog & lt; / H2 & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "footer" & gt; & Lt; / Div & gt; & Lt; / Div & gt; My CSS is:
html, body {padding: 0; Margin: 0; Height: 100%; } #mancontain {min-height: 100%; Status: Relative; } # Headers {Width: 100%; Height: 180 pixels; Background-color: # 111111; } #contentContain {background-image: url ('../ img / shadow-bg.png'); Background-position: center top; Repeat Background: No Repetition; Padding-down: 45px; / * This value is the height of your footer * /} #content {margin: auto; Border: thin blue solid; } #footer {status: complete; Width: 100%; Bottom: 0; Height: 45px; / * This value is the height of your footer * / background color: # 111111; }
You are probably seeing the results of falling margins.
You can prevent the margins from falling by adding a border or some padding at the top of your block element or by creating new block formatting references by setting overflow: auto for example : # content {margin: auto; Border: Thin transparent concrete; / * Option 1 * / padding-top: 1px; / * Option 2 * / Overflow: Auto; / * Option 3 * /} Use which option If you use the first two options, you can add additional By using 1px
overflow the third option will not affect the height of the element. The first two options will probably be backwards compatible for all but the oldest browser. Anything that supports CSS2.1 will work as expected.
For the overflow , it is backed up on IE4 all the way back with some minor exceptions. See for details.
I have a question about Lisene Stemmer, I was wondering if Lucen holds both stereo words and non-persecuting words Or does it change all the words with just unconventional words? For example, if a record is low: "Everyone loves cats" is it running?
= "post-text" itemprop = "text">
Generally, only the whole version is kept, that is, in your example, the end result "everybody loves the cat" instead of "every No cat loves cats "or will have some similar combination.
You expect to use both stacks during indexes and inquiries. There may be some stiming filters, like, you allow to keep the original, but due to this and the systemized queries, the cause of PhraseQueries will not work properly (synonyms on this topic See note in Docs). I do not believe the most common stamming filters (i.e.) provide that functionality.
I need to search for system data for some reason, I recommend to store another area that is completely unused, the purpose
I am creating an app that uses TCP, I have a TCP client object (after connecting to the server) Must pass in another activity. To wit. I have an activity that searches for a host, allows the client to connect, and then the introduction of captivity in the inclusion will start a new activity (game activity). I need something about how to pass client objects in game activity
I think in your case The best way would be to create a TCP connection in a singleton class, in this way you can access your connection in a simple Manner, a sample code. Apart from this, a better idea would be to use components from android.
I am trying to read a very large file using Java. That large file will contain data like this, which means that each line will have a user ID.
149905320 1165665384 66969324 886633368 1145241312 286585320 1008665352 And in that large file there will be around 30 million user IDs now that user id once that file I am trying to read once. Which means that each user ID should be selected only from that large file. For example, if I have 3 million user user ID then it should print only 30 million user IDs with the use of the much anticipated code.
Below I have a code which is a multi-thread code running with 10 threads, the program given below, I am not able to ensure that every user ID is selected only once. Public category ReadingFile {public static zero main (string [] args) {// Create a Thread Pool Executable service service = executable with the given size. NewfixedThreadPool (10); For (int i = 0; i
You can not really improve reading a thread in the file sequentially, assuming it That you have not done anything like a file in multiple disks, with a thread, you do a search and then read a long sequential; with many threads you are going to create many threads, Each advantage is known as control.
EDIT: This is a way to parallel line processing while still using serial I / O to read lines It uses one to communicate between the thread; Adds the line to the file task line, and reads them and executes them as CPCTUSC . This is a thread-safe data structure, so there is no need to add any synchronization to it. You are using put (ee) to add strings in the queue, so if the queue is full (it can hold 200 strings, like ReadingFile ) File Task blocks space free; Similarly you are using LE to extract items from the queue, so the code will be blocked by CPUTask until it becomes available. public class readings {public static zero main (string [] args) {final integer thread = 10; // BlockingQueue with 200 Blocking Quantity & lt; String & gt; Queue = new Arrawlocking Q & lt; & Gt; (200); // Create a Thread Pool with the given size Executable Services Service = Exporter. NewFixedThreadPool (ThreadCount); For (Int i = 0; I & lt; (ThreadCount1); I ++) {service.submit (new CPUsq (queue)); } // File Wait for the cookies to complete. Service.submit (new file task (queue)) is complete. Service.shutdownNow (); // Stop CPutasks // terminate the CPUTasks service. Wait (365, TimeUnit.DAYS); }} Class file executes the runleble {Private Final Blocking Q & lt; String & gt; Queue; Public file task (BlockingQueue line) {this.queue = queue; } @ Override Public Wide Run () {Buffered Redirector BR = Faucet; Try {br = new BufferedReader (new FileReader ("D: /abc.txt")); String line; While ((line = br.readline ())! = Null) {// block if queue is the full queue.It is (line); }} Hold (FileNotFoundException e) {e.printStackTrace (); } Hold (IOException e) {e.printStackTrace (); } Finally {try {br.close ()}} hold (IOException e) {e.printStackTrace (); }}}} Class CPUTask implies Runnabel {Private Final Blocking Q & lt; String & gt; Queue; Public SeatsSock (blocking Q & lt; string & gt; queue) {this.queue = queue; } @ Override Public Wide Run () {String Line; While {true} {try {// block if queue is empty line = queue.take ();) // works with line} grip (interrupted preprator pre) {break; // FileTask is complete}} // poll () If empty, then the row is empty ((line = queue.poll ())! = Null) {// works with line; }}}
I have a JSON object that I used to make a form. This JSON object is parsed by knockoutJs.
Now, when I am modifying the form, I want to update the JSON object according to the modifications made in the form. The thing is that I do not already know what the form will be like, but I know in the JasonOn object that the field needs to be updated.
I do not know what is the best way to proceed. I know that I have changed something every time, but it can rebuild JSON objects, but it seems like a bad idea and a tiring process.
Is each JSON object field an easy way to make items in knockoutJS?
I felt something interesting with this line:
/ P>
Lt; Input type = "text" data-bind = "value: $ data.value, attr: {disabled: $ data.disabled}" /> I'm reaching the value directly from the array ($ data.value). There is a way in HTML to beat in order to bind this particular feature in the array. I know that if the array is reordered then everything will get messy, but since I know that only one thing that can change is this property, am I ready to take this risk?
There is a way to manually say that when this value changes to change it in the array such as
data-bound = "on change: $ data" Value = this.value "
Do each JSON object field in Knock OutJs An easy way to create an item?
Yes, if I think what you want to do right now, your visual model does not have value observations and automatically updates as form cost change Will not be done. There is a plugin to handle this mapping. Example: To use a .map
To create a visual model through the mapping plugin, replace the .mapping .jpg Creating visual modules in the code above with the function:
var viewmodel = ko.mapping.fromJS (data); This creates automatically ignored properties for each asset on the data. Then, every time you get new data from the server, you can update all the properties on the viewfinder module in one step by calling ComoProMJS function again:
Ko.mapping.fromJS (Data, ViewModel); Hope it helps.
I am trying to use the visual application for the profile running in EC2 for the profile. The vidyulum connects to the remote machine and will show me the observation, monitor and visual gc tab (with data), but when I select the sample tab I will get:
is not available. Use the 'Add Jmx Connection' link to app to applying JMX connection to target apps. I have tried to add the JMX connection (EC2 public address and JMX port was started with the app). no avail.
I can see in the Visual Overview tab that I have set up JMXTTTINGS of the app (and by that extension, Visual MS looks at those settings):
-dom Sun.management.jmxremote -Dcom.sun.management.jmxremote.port = 9010 -Dcom.sun.management.jmxremote.local.only = false -Dcom.sun.management.jmxremote.authenticate = false I am using an EC2 security model which opens all ports on EC2 with its local machine. I am running the exact same GVM on both machines I have run jstatd on EC2 machine.
What else to try and make sure.
Do you use SSL authentication? If not to use it, try changing
-Dcom.sun.management.jmxremote.local.only = false
-Dcom.sun.management.jmxremote.ssl = false
मेरे पास निम्न mysql तालिका है,
id, text, rank हर बार जब मैं एक लेख सम्मिलित करता हूं, तो मैं रैंकिंग को 1 जैसा ही मानता हूं,
1, blah blah, 1 यदि एक से अधिक व्यक्ति इस पाठ को पढ़ता है तो रैंक एक की वृद्धि होगी।
इसलिए मुझे नीचे दिए गए 2 ग्रंथों के लिए खोजशब्दों और रैंकिंग के आधार पर एक स्पिंक्स खोज करना है।
1, blah blah, 2 2, blah blah blah, 6 ताकि उपयोगकर्ता खोजशब्द "blah" के लिए खोज करे तो परिणाम < / P>
2, blah blah blah, 6 / पहले रैंकिंग के रूप में सबसे पहले 1, ब्ला ब्ला, 2 मुझे यकीन नहीं है कि यह कैसे करना है , क्या मुझे स्पिंक्स में खोजशब्दों की खोज करने की आवश्यकता है और फिर रैंक के आधार पर दस्तावेज़ के परिणाम को सॉर्ट करना है? जो अच्छा नहीं है
या, क्या इस तरह की समस्या के लिए उपलब्ध स्पिंक्स में कुछ भी है?
मैं स्फीक्स दस्तावेजों पर रैंकिंग के बारे में पढ़ रहा हूं, लेकिन ऐसा लगता है कि यह पाठ से संबंधित है और शब्दों का वजन स्पिंक्स के साथ, आप 'रैंक' को इंडेक्स में एक पूर्णांक विशेषता के रूप में सेट कर सकते हैं
विशेषताएँ , सीधे सूचकांक में जमा होती हैं, और सॉर्टिंग, फ़िल्टरिंग इत्यादि के लिए उपयोग की जा सकती हैं। इस प्रकार विशेषता द्वारा आपके परिणाम सॉर्ट कर सकते हैं ( बजाय पूर्ण-टेक्स्ट वजन के आधार पर)